Fixes
Fabio Cevasco h3rald@h3rald.com
Wed, 01 Jan 2025 16:03:38 +0100
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/interpreter.c
→
src/interpreter.c
@@ -22,6 +22,8 @@ context->stack_trace = malloc(sizeof(hex_stack_trace_t));
context->stack_trace->entries = malloc(HEX_STACK_TRACE_SIZE * sizeof(hex_token_t)); context->stack_trace->start = 0; context->stack_trace->size = 0; + context->cleanup_stack = malloc(sizeof(hex_cleanup_stack_t)); + context->cleanup_stack->entries = {NULL}; context->cleanup_stack->count = 0; context->settings = malloc(sizeof(hex_settings_t)); context->settings->debugging_enabled = 0;