![]() | Fun 0.41.5 The programming language that makes You have fun |
The Fun virtual machine state. More...
#include <vm.h>

Data Fields | |
| Value | stack [STACK_SIZE] |
| int | sp |
| Frame | frames [MAX_FRAMES] |
| int | fp |
| Value | globals [MAX_GLOBALS] |
| Value | output [OUTPUT_SIZE] |
| int | output_count |
| int | output_is_partial [OUTPUT_SIZE] |
| long long | instr_count |
| int | current_line |
| int | exit_code |
| int | trace_enabled |
| int | repl_on_error |
| int(* | on_error_repl )(struct VM *vm) |
| int | debug_step_mode |
| int | debug_step_target_fp |
| long long | debug_step_start_ic |
| int | debug_stop_requested |
| struct { | |
| char * file | |
| int line | |
| int active | |
| } | breakpoints [64] |
| int | break_count |
The Fun virtual machine state.
Holds the operand stack, call frames, globals, standard output capture, runtime counters, and debugger state. Functions in this header operate on this structure; callers must ensure proper initialization with vm_init() before use and call vm_free()/vm_reset() as appropriate.
| struct { ... } breakpoints[64] |
| Frame frames[MAX_FRAMES] |
| Value globals[MAX_GLOBALS] |
| Value output[OUTPUT_SIZE] |
| int output_is_partial[OUTPUT_SIZE] |
| Value stack[STACK_SIZE] |