Stack trace now contains only operator symbols.
h3rald h3rald@h3rald.com
Sat, 28 Dec 2024 17:08:57 +0100
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/error.c
→
src/error.c
@@ -93,7 +93,7 @@ if (!ctx->settings->stack_trace_enabled || !ctx->settings->errors_enabled || ctx->stack_trace->size <= 0)
{ return; } - fprintf(stderr, "[stack trace] (most recent symbol first):\n"); + fprintf(stderr, "[stack trace] (most recent operator symbol first):\n"); for (size_t i = 0; i < ctx->stack_trace->size; i++) {
M
src/stack.c
→
src/stack.c
@@ -36,9 +36,9 @@ return 1;
} if (hex_get_symbol(ctx, item->token->value, value)) { - add_to_stack_trace(ctx, item->token); if (value->type == HEX_TYPE_QUOTATION && value->operator) { + add_to_stack_trace(ctx, item->token); for (size_t i = 0; i < value->quotation_size; i++) { if (hex_push(ctx, value->data.quotation_value[i]) != 0)