| 62 | } |
| 63 | |
| 64 | void xs_repl_eval(txMachine* the) |
| 65 | { |
| 66 | txStringStream aStream; |
| 67 | txSlot* realm = mxProgram.value.reference->next->value.module.realm; |
| 68 | aStream.slot = mxArgv(0); |
| 69 | aStream.offset = 0; |
| 70 | aStream.size = c_strlen(fxToString(the, mxArgv(0))); |
| 71 | fxRunScript(the, fxParseScript(the, &aStream, fxStringGetter, mxProgramFlag), mxRealmGlobal(realm), C_NULL, mxRealmClosures(realm)->value.reference, C_NULL, mxProgram.value.reference); |
| 72 | mxPullSlot(mxResult); |
| 73 | #ifdef mxInstrument |
| 74 | fxSampleInstrumentation(the, 0, NULL); |
| 75 | #endif |
| 76 | } |
| 77 | |
| 78 | int main(int argc, char* argv[]) |
| 79 | { |
nothing calls this directly
no test coverage detected