mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Allow for stmt to have empty clauses, resolved #58
This commit is contained in:
@@ -1827,6 +1827,10 @@ static void execInterpreter(Toy_Interpreter* interpreter) {
|
||||
|
||||
while(opcode != TOY_OP_EOF && opcode != TOY_OP_SECTION_END && !interpreter->panic) {
|
||||
switch(opcode) {
|
||||
case TOY_OP_PASS:
|
||||
//DO NOTHING
|
||||
break;
|
||||
|
||||
case TOY_OP_ASSERT:
|
||||
if (!execAssert(interpreter)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user