Repl works, also fixed a few small bugs

This commit is contained in:
2025-01-31 10:16:06 +11:00
parent 002651f95d
commit bfed4e23f3
5 changed files with 43 additions and 25 deletions

View File

@@ -8,6 +8,10 @@ static inline unsigned int readUnsignedInt(unsigned char** handle) {
}
Toy_Module Toy_parseModule(unsigned char* ptr) {
if (ptr == NULL) {
return (Toy_Module){ 0 };
}
Toy_Module module;
module.scopePtr = NULL;