Skip to content

Commit

Permalink
thcrap: Added symbol for current address
Browse files Browse the repository at this point in the history
  • Loading branch information
zero318 committed Aug 29, 2023
1 parent d717405 commit 43977c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thcrap/src/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,10 @@ static const char* consume_value_impl(const char* expr, size_t *const out, const
*out = current;
goto PostfixCheck;
}
// Current address
case '@':
*out = data_refs->rel_source;
goto PostfixCheck;
// Somehow it ran out of expression string, so stop parsing
case '\0':
goto InvalidValueError;
Expand Down

0 comments on commit 43977c5

Please # to comment.