![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_POP opcode for removing the top stack value in the VM. More...

Go to the source code of this file.
Functions | |
| exit (1) | |
| free_value (v) | |
Variables | |
| case | OP_POP |
| case Runtime | error |
| Value | v = pop_value(vm) |
| break | |
Implements the OP_POP opcode for removing the top stack value in the VM.
This file handles the OP_POP instruction, which removes the top value from the stack.
Behavior:
Error Handling:
Example: // Bytecode: OP_POP // Stack before: [42] // Stack after: []
Definition in file pop.c.
| exit | ( | 1 | ) |
| free_value | ( | v | ) |