| 210 | } |
| 211 | |
| 212 | void 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 |
nothing calls this directly
no test coverage detected