MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxReportWarning

Function fxReportWarning

xs/sources/xsDebug.c:2897–2918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2895}
2896
2897void fxReportWarning(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...)
2898{
2899 c_va_list arguments;
2900
2901 c_va_start(arguments, theFormat);
2902 fxVReportWarning(the, thePath, theLine, theFormat, arguments);
2903 c_va_end(arguments);
2904#ifndef mxNoConsole
2905 if (thePath && theLine)
2906#if mxWindows
2907 printf("%s(%d): warning: ", thePath, (int)theLine);
2908#else
2909 c_printf("%s:%d: warning: ", thePath, (int)theLine);
2910#endif
2911 else
2912 c_printf("# warning: ");
2913 c_va_start(arguments, theFormat);
2914 c_vprintf(theFormat, arguments);
2915 c_va_end(arguments);
2916 c_printf("!\n");
2917#endif
2918}
2919
2920txID fxGenerateProfileID(void* console)
2921{

Callers

nothing calls this directly

Calls 1

fxVReportWarningFunction · 0.70

Tested by

no test coverage detected