sgs_Msg [function]
SGSZERO sgs_Msg( sgs_Context* C, int type, const char* what, ... )
Prepares and prints the error specified.
- Info about the system is at the Messaging system page.
type
is the output code (SGS_WARNING, SGS_ERROR etc.).
what
is the error text;
- additional function name prefix can be specified with sgs_FuncName or the SGSFN/SGSBASEFN macros.
what
, the function name prefix (if set) and the variable arguments are passed to a `vsprintf`-like function so printf
syntax rules apply.
- Function always returns 0 to be compatible with most error handling cases in C functions: "return sgs_Msg( ... );".