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

Function fxVReportWarning

xs/sources/xsDebug.c:3025–3047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3023}
3024
3025void fxVReportWarning(void* console, txString thePath, txInteger theLine, txString theFormat, c_va_list theArguments)
3026{
3027#ifdef mxDebug
3028 txMachine* the = console;
3029 if (fxIsConnected(the)) {
3030 fxEchoStart(the);
3031 fxEcho(the, "<log");
3032 fxEchoPathLine(the, thePath, theLine);
3033 fxEcho(the, "># Warning: ");
3034 fxEchoFormat(the, theFormat, theArguments);
3035 fxEcho(the, "!\n</log>");
3036 fxEchoStop(the);
3037 }
3038#endif
3039#if defined(DEBUG_EFM)
3040 if (thePath && theLine)
3041 sprintf(_debugStrBuffer, "%s:%d: warning: ", thePath, (int)theLine);
3042 else
3043 sprintf(_debugStrBuffer, "# warning: ");
3044 vsprintf(_debugStrBuffer, theFormat, theArguments);
3045 _debugStrBuffer[255] = '\0';
3046#endif
3047}
3048
3049#ifdef mxInstrument
3050#if kCPUESP32C6 || kCPUESP32H2

Callers 1

fxReportWarningFunction · 0.70

Calls 6

fxEchoStartFunction · 0.85
fxEchoFunction · 0.85
fxEchoPathLineFunction · 0.85
fxEchoFormatFunction · 0.85
fxEchoStopFunction · 0.85
fxIsConnectedFunction · 0.70

Tested by

no test coverage detected