Move INVALID_POSITION from header to C source - #27

This commit is contained in:
josh committed 2024-07-21 13:39:34 -04:00
1 parent 092fce61eb
commit c5b8fc28bd
2 files changed
+3 -3

No files matched your search

-3
View File
@@ -52,9 +52,6 @@ typedef struct
uint32_t col;
} <%= @grammar.prefix %>position_t;
/** Invalid position value. */
#define INVALID_POSITION (<%= @grammar.prefix %>position_t){0xFFFFFFFFu, 0xFFFFFFFFu}
/** Return whether the position is valid. */
#define <%= @grammar.prefix %>position_valid(p) ((p).row != 0xFFFFFFFFu)