diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 17:21:56 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 17:22:26 +0100 |
commit | 15e93b55266186c159688e3b54bead26da206ee2 (patch) | |
tree | ea80ee4419f9c19a14fc016c29beff38f4698896 /src/c8asm/parser.c | |
parent | 5a419deabba93d9fea3f6af2c921a76d2dc9927c (diff) |
Make unreachable() useful when debugging, and move common macros
Diffstat (limited to 'src/c8asm/parser.c')
-rw-r--r-- | src/c8asm/parser.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/c8asm/parser.c b/src/c8asm/parser.c index 357a082..d6e79f9 100644 --- a/src/c8asm/parser.c +++ b/src/c8asm/parser.c @@ -8,13 +8,9 @@ #include "cerr.h" #include "common.h" #include "lexer.h" +#include "macros.h" #include "parser.h" -/* TODO: Remove */ -#ifndef unreachable -# define unreachable() __builtin_unreachable() -#endif - #define E_BADLABEL "identifier ā%.*sā cannot be used as a label" #define E_EARLY "expected %s but input ended prematurely" #define E_EXPECTED2 "expected %s but got %s" |