Context
- Added special integer catch handler for hook terminations.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user