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

Function fxAbort

xs/platforms/zephyr/xsPlatform.c:212–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void fxAbort(txMachine* the, int status)
213{
214#if MODDEF_XS_TEST
215 if (XS_DEBUGGER_EXIT == status) {
216 modSoftReset();
217 return;
218 }
219#endif
220
221 char *msg = (char*)fxAbortString(status);
222 char *reason = "";
223 if (XS_UNHANDLED_EXCEPTION_EXIT == status) {
224 mxPush(mxException);
225 mxGetID(mxID(_message));
226 if ((the->stack->kind == XS_STRING_KIND) || (the->stack->kind == XS_STRING_X_KIND))
227 reason = the->stack->value.string;
228 }
229
230 printf("fxAbort %s: %s", msg, reason);
231
232 c_exit(status);
233}
234
235#ifdef mxDebug
236

Callers

nothing calls this directly

Calls 1

fxAbortStringFunction · 0.85

Tested by

no test coverage detected