Added panic state to Toy_Compiler to catch a certain condition

This commit is contained in:
2023-02-09 07:58:55 +00:00
parent b8e3324acb
commit 60908c8bf3
3 changed files with 36 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ typedef struct Toy_Compiler {
unsigned char* bytecode;
int capacity;
int count;
bool panic;
} Toy_Compiler;
TOY_API void Toy_initCompiler(Toy_Compiler* compiler);