use macro constant here

This commit is contained in:
tocariimaa 2025-01-19 19:12:45 -03:00
parent b2c4a55544
commit abc6a16294

View file

@ -15,7 +15,7 @@
#define STRING_LITERAL_BASE_SIZE 255 #define STRING_LITERAL_BASE_SIZE 255
#define STRING_LITERAL_MAX_SIZE 4096 #define STRING_LITERAL_MAX_SIZE 4096
#define at_buffer_end(ls) (*(ls)->fwd == '\0') #define at_buffer_end(ls) (*(ls)->fwd == LEX_BUFFER_SENTINEL)
#define ascii_isident(c) (c == '_' || c == '?' || c == '!' || ascii_isalnum(c)) #define ascii_isident(c) (c == '_' || c == '?' || c == '!' || ascii_isalnum(c))
#define ascii_isident_start(c) (c == '_' || ascii_isalpha(c)) #define ascii_isident_start(c) (c == '_' || ascii_isalpha(c))