![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_LOAD_CONST opcode for loading constants in the VM. More...

Go to the source code of this file.
Functions | |
| if (idx< 0||idx >=f->fn->const_count) | |
| push_value (vm, c) | |
Variables | |
| case | OP_LOAD_CONST |
| Value | c = copy_value(&f->fn->constants[idx]) |
| break | |
Implements the OP_LOAD_CONST opcode for loading constants in the VM.
This file handles the OP_LOAD_CONST instruction, which loads a constant value from the bytecode's constant pool onto the stack.
Behavior:
Error Handling:
Definition in file load_const.c.
Definition at line 27 of file load_const.c.
| push_value | ( | vm | , |
| c | ) |
| break |
Definition at line 33 of file load_const.c.
| Value c = copy_value(&f->fn->constants[idx]) |
Definition at line 31 of file load_const.c.
| case OP_LOAD_CONST |
Definition at line 25 of file load_const.c.