extern long KADMOS_API re_SetErrorConfig(long config);
config
RE_QUITENABLED
Activate keyboard input Ctrl + C,
ESC and Alt + F4 for program termination.
RE_ERRORDISPLAY
Activate the output of error text on the screen.
RE_ERROREXIT
Stop program execution (send PostQuitMessage under Windows) after any error.
RE_ENABLEWARNINGS
Treat warnings as errors (except handling RE_ERROREXIT
).
RE_NOERRORHANDLING
No error handling, only return into the calling program.
Last error configuration before the function call.
To combine several settings, simply combine the macros with |, ~, or &
and call re_SetErrorConfig()
.
The function returns the error configuration which was valid before the call. The function re_GetErrorConfig()
has been provided to retrieve the given settings of the error handler. For example, to prevent the KADMOS error handler from
displaying error texts - without changing the other settings - simply call:
re_SetErrorConfig(re_GetErrorConfig()&(~RE_ERRORDISPLAY));