mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Implemented scopes
This commit is contained in:
@@ -482,6 +482,14 @@ static void process(Toy_VM* vm) {
|
||||
//temp terminator
|
||||
return;
|
||||
|
||||
case TOY_OPCODE_SCOPE_PUSH:
|
||||
vm->scope = Toy_pushScope(&vm->scopeBucket, vm->scope);
|
||||
break;
|
||||
|
||||
case TOY_OPCODE_SCOPE_POP:
|
||||
vm->scope = Toy_popScope(vm->scope);
|
||||
break;
|
||||
|
||||
//various action instructions
|
||||
case TOY_OPCODE_PRINT:
|
||||
processPrint(vm);
|
||||
|
||||
Reference in New Issue
Block a user