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

Function fxReportError

xs/sources/xsDebug.c:2874–2895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2872}
2873
2874void fxReportError(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...)
2875{
2876 c_va_list arguments;
2877
2878 c_va_start(arguments, theFormat);
2879 fxVReportError(the, thePath, theLine, theFormat, arguments);
2880 c_va_end(arguments);
2881#ifndef mxNoConsole
2882 if (thePath && theLine)
2883#if mxWindows
2884 printf("%s(%d): error: ", thePath, (int)theLine);
2885#else
2886 c_printf("%s:%d: error: ", thePath, (int)theLine);
2887#endif
2888 else
2889 c_printf("# error: ");
2890 c_va_start(arguments, theFormat);
2891 c_vprintf(theFormat, arguments);
2892 c_va_end(arguments);
2893 c_printf("!\n");
2894#endif
2895}
2896
2897void fxReportWarning(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...)
2898{

Callers

nothing calls this directly

Calls 1

fxVReportErrorFunction · 0.70

Tested by

no test coverage detected