![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
Implements the OP_KEYS opcode for retrieving map keys in the VM. More...
Go to the source code of this file.
Functions | |
| if (m.type !=VAL_MAP) | |
| free_value (m) | |
| push_value (vm, arr) | |
Variables | |
| case | OP_KEYS |
| Value | arr = map_keys_array(&m) |
| break | |
Implements the OP_KEYS opcode for retrieving map keys in the VM.
This file handles the OP_KEYS instruction, which retrieves the keys of a map and pushes them as an array onto the stack.
Behavior:
Error Handling:
Example:
Definition in file keys.c.
| free_value | ( | m | ) |
| push_value | ( | vm | , |
| arr | ) |
| Value arr = map_keys_array(&m) |