Interpreter adopts inner interpreter panic state on assert failure

This commit is contained in:
2022-08-27 12:07:41 +01:00
parent 90e5a5d08b
commit e523a6f60a
5 changed files with 18 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ typedef struct Interpreter {
// LiteralDictionary exports; //TODO: read-write - interface with Toy from C
PrintFn printOutput;
PrintFn assertOutput;
bool panic;
} Interpreter;
void initInterpreter(Interpreter* interpreter);