- Added special integer catch handler for hook terminations.
This commit is contained in:
Paul Beckingham 2014-05-14 00:03:56 -04:00
parent d30fb54a62
commit ad1dc807ea

View file

@ -232,6 +232,12 @@ int Context::initialize (int argc, const char** argv)
rc = 2; rc = 2;
} }
catch (int)
{
// Hooks can terminate processing by throwing integers.
rc = 4;
}
catch (...) catch (...)
{ {
error (STRING_UNKNOWN_ERROR); error (STRING_UNKNOWN_ERROR);