sgs_SetMsgFunc [function]
void sgs_SetMsgFunc( sgs_Context* C, sgs_MsgFunc func, void* userdata )
Sets the function that handles and prints messages (more commonly, warnings and errors), while still being physically in that context.
- Info about the system is at the Messaging system page.
- Both subtypes of the default messaging function can be set by passing these flags for
func
:
- 'SGSMSGFN_DEFAULT' - default behavior (write stack frame, write error, abort on SGS_ERROR);
- 'SGSMSGFN_DEFAULT_NOABORT' - default behavior without the abort-on-errors feature;
- Default implementations - sgs_StdMsgFunc(_NoAbort) passes error and stack trace to @sgs_ErrWrite<sgs_(Err)Write).