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

Function fxReportException

xs/sources/xsDebug.c:2851–2872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2849}
2850
2851void fxReportException(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...)
2852{
2853 c_va_list arguments;
2854
2855 c_va_start(arguments, theFormat);
2856 fxVReportException(the, thePath, theLine, theFormat, arguments);
2857 c_va_end(arguments);
2858#ifndef mxNoConsole
2859 if (thePath && theLine)
2860#if mxWindows
2861 printf("%s(%d): exception: ", thePath, (int)theLine);
2862#else
2863 c_printf("%s:%d: exception: ", thePath, (int)theLine);
2864#endif
2865 else
2866 c_printf("# exception: ");
2867 c_va_start(arguments, theFormat);
2868 c_vprintf(theFormat, arguments);
2869 c_va_end(arguments);
2870 c_printf("!\n");
2871#endif
2872}
2873
2874void fxReportError(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...)
2875{

Callers 1

fxDebugThrowFunction · 0.85

Calls 1

fxVReportExceptionFunction · 0.85

Tested by

no test coverage detected