diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 16:27:05 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 16:27:05 +0630 |
commit | ae3794c33e1dbc96551082a3886379bf517b8aae (patch) | |
tree | 2f4755aed89398a31af6bfc4c5fd3316c616ce8d /asm | |
parent | a70dcf2e3ff5fd6e6fb88f395722eb1199a74693 (diff) | |
download | ovm-ae3794c33e1dbc96551082a3886379bf517b8aae.tar.gz ovm-ae3794c33e1dbc96551082a3886379bf517b8aae.tar.bz2 ovm-ae3794c33e1dbc96551082a3886379bf517b8aae.zip |
constexpr -> const in lexer.cpp
Not much of an actual performance change, more semantic meaning for me.
Diffstat (limited to 'asm')
-rw-r--r-- | asm/lexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asm/lexer.cpp b/asm/lexer.cpp index 82cf260..2042cc4 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -24,9 +24,9 @@ static_assert(NUMBER_OF_OPCODES == 98, "ERROR: Lexer is out of date"); using std::string, std::string_view, std::pair, std::make_pair; -constexpr auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV" - "WXYZ0123456789-_.:()%#$", - VALID_DIGIT = "0123456789", VALID_HEX = "0123456789abcdefABCDEF"; +const auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV" + "WXYZ0123456789-_.:()%#$", + VALID_DIGIT = "0123456789", VALID_HEX = "0123456789abcdefABCDEF"; bool is_char_in_s(char c, const char *s) { |