aboutsummaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/preprocesser.cpp4
1 files changed, 3 insertions, 1 deletions
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<token_t *> &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;