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

Function fxVReport

xs/sources/xsDebug.c:2938–2958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2936}
2937
2938void fxVReport(void* console, txString theFormat, c_va_list theArguments)
2939{
2940#ifdef mxDebug
2941 txMachine* the = console;
2942 if (fxIsConnected(the)) {
2943 fxEchoStart(the);
2944 fxEcho(the, "<log>");
2945 fxEchoFormat(the, theFormat, theArguments);
2946 fxEcho(the, "</log>");
2947 fxEchoStop(the);
2948 }
2949#elif defined(nrf52) && defined(mxInstrument)
2950 char buf[256];
2951 vsnprintf(buf, 256, theFormat, theArguments);
2952 modLog_transmit(buf);
2953#elif defined(DEBUG_EFM)
2954 memmove(_lastDebugStrBuffer, _debugStrBuffer, 256);
2955 vsprintf(_debugStrBuffer, theFormat, theArguments);
2956 _debugStrBuffer[255] = '\0';
2957#endif
2958}
2959
2960void fxVReportException(void* console, txString thePath, txInteger theLine, txString theFormat, c_va_list theArguments)
2961{

Callers 1

xsDebug.cFile · 0.70

Calls 5

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

Tested by

no test coverage detected