mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
py/lexer: Add static assert that token enum values all fit in a byte.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -152,6 +152,8 @@ typedef enum _mp_token_kind_t {
|
||||
MP_TOKEN_DEL_SEMICOLON,
|
||||
MP_TOKEN_DEL_EQUAL,
|
||||
MP_TOKEN_DEL_MINUS_MORE,
|
||||
|
||||
MP_TOKEN_NUMBER_OF,
|
||||
} mp_token_kind_t;
|
||||
|
||||
// this data structure is exposed for efficiency
|
||||
|
||||
Reference in New Issue
Block a user