all repos — hex @ 6a4017452b2d5b398c633a11fe9faec325d4deb3

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Stack trace now contains only operator symbols.
h3rald h3rald@h3rald.com
Sat, 28 Dec 2024 17:08:57 +0100
commit

6a4017452b2d5b398c633a11fe9faec325d4deb3

parent

7107e305ce51b1983a8bd7c65664d0f9af9346e1

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/error.csrc/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.csrc/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)