From 3fc1f081343b146405496f1f0ddf5b41d2fce18a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 16 Apr 2024 15:40:00 +0630 Subject: Fix bug where CONST table didn't actually store symbol names Pretty simple fix, stupid error in hindsight. --- asm/preprocesser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asm/preprocesser.cpp b/asm/preprocesser.cpp index 6ea6d45..f5e31e4 100644 --- a/asm/preprocesser.cpp +++ b/asm/preprocesser.cpp @@ -85,7 +85,9 @@ pp_err_t preprocess_const_blocks(const vector &tokens, { string_view capture; if (i + 1 >= tokens.size() || tokens[i + 1]->type != token_type_t::SYMBOL) - capture = tokens[++i]->content; + return pp_err_type_t::EXPECTED_NAME; + + capture = tokens[++i]->content; ++i; size_t block_start = i, block_end = 0; -- cgit v1.2.3-13-gbd6f