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.