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

Go to the source code of this file.
Functions | |
| if (argc< 0) argc=0 | |
| if (argc > 0) | |
| if (fnv.type !=VAL_FUNCTION) | |
| vm_push_frame (vm, fnv.fn, argc, args) | |
| free (args) | |
Variables | |
| case | OP_CALL |
| Value * | args = NULL |
| Value | fnv = pop_value(vm) |
| break | |
Implements the OP_CALL opcode for function calls in the VM.
This file handles the OP_CALL instruction, which calls a function with arguments.
Behavior:
Error Handling:
Definition in file call.c.
| free | ( | args | ) |
| if | ( | fnv.type ! | = VAL_FUNCTION | ) |
| vm_push_frame | ( | vm | , |
| fnv. | fn, | ||
| argc | , | ||
| args | ) |