sgs_WriteErrorInfo [function]
void sgs_WriteErrorInfo( sgs_Context* C, int flags, sgs_ErrorOutputFunc func, void* ctx, int type, const char* msg )
Writes error info using the error output function specified.
The error output function type has the following definition:
typedef int (*sgs_ErrorOutputFunc) ( void*, const char*, ... );
- Error output function has the same type as
fprintf
and sgs_(Err)Writef: type
andmsg
should be passed from the messaging callback - they are the same type number / error message.flags
should be one of SGS_ERRORINFO_STACK, SGS_ERRORINFO_ERROR, SGS_ERRORINFO_FULL:- SGS_ERRORINFO_STACK only writes the stack frame;
- SGS_ERRORINFO_ERROR only writes the error message;
- SGS_ERRORINFO_FULL writes both.