re_SetErrorConfig()

extern long XXX_API re_SetErrorConfig(long config);
      

Parameter:

config
Parameter to config the XXX error handling. Settings are:
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.

Return value:

Last error configuration before the function call.

Comment:

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 XXX error handler from displaying error texts - without changing the other settings - simply call:
re_SetErrorConfig(re_GetErrorConfig()&(~RE_ERRORDISPLAY));

Reference: