![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
Implements the OP_MAKE_MAP opcode for creating maps in the VM. More...
Go to the source code of this file.
Functions | |
| if (pairs< 0) | |
| for (int i=0;i< pairs;++i) | |
| push_value (vm, m) | |
Variables | |
| case | OP_MAKE_MAP |
| Value | m = make_map_empty() |
| break | |
Implements the OP_MAKE_MAP opcode for creating maps in the VM.
This file handles the OP_MAKE_MAP instruction, which pops pairs key-value pairs from the stack, creates a map from them, and pushes the resulting map back onto the stack.
Behavior:
Error Handling:
Example:
Definition in file make_map.c.
| for | ( | ) |
Definition at line 40 of file make_map.c.
| if | ( | ) |
Definition at line 35 of file make_map.c.
| push_value | ( | vm | , |
| m | ) |
| break |
Definition at line 54 of file make_map.c.
| Value m = make_map_empty() |
Definition at line 39 of file make_map.c.
| case OP_MAKE_MAP |
Definition at line 33 of file make_map.c.