void cml_warningl(const cml_location *loc, const char *fmt, ...) { va_list args; va_start(args, fmt); call_error_func(CML_WARNING, loc, fmt, args); va_end(args); }
void cml_messagelv( cml_severity sev, const cml_location *loc, const char *fmt, va_list args) { call_error_func(sev, loc, fmt, args); }
void cml_infol(const cml_location *loc, const char *fmt, ...) { va_list args; va_start(args, fmt); call_error_func(CML_INFO, loc, fmt, args); va_end(args); }
void cml_messagel( cml_severity sev, const cml_location *loc, const char *fmt, ...) { va_list args; va_start(args, fmt); call_error_func(sev, loc, fmt, args); va_end(args); }
/* The error reporter callback. */ void error_callback(JSContext *cx, const char *message, JSErrorReport *report) { call_error_func(JS_GetContextPrivate(cx), (char*)message, report); }