Fix bug where CONST table didn't actually store symbol names
Pretty simple fix, stupid error in hindsight.
This commit is contained in:
@@ -85,7 +85,9 @@ pp_err_t preprocess_const_blocks(const vector<token_t *> &tokens,
|
|||||||
{
|
{
|
||||||
string_view capture;
|
string_view capture;
|
||||||
if (i + 1 >= tokens.size() || tokens[i + 1]->type != token_type_t::SYMBOL)
|
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;
|
++i;
|
||||||
size_t block_start = i, block_end = 0;
|
size_t block_start = i, block_end = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user