aboutsummaryrefslogtreecommitdiff
path: root/src/c8asm/common.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-19 22:43:36 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-19 22:44:07 +0100
commit2520b79fdf6c344c358e21518b1a5fbcccb21095 (patch)
tree54c0cee6c12412d438e9fd0cf06a4e2a19e8e996 /src/c8asm/common.h
parent1207728a0c8824029a10d091e2258d242b77bd26 (diff)
Make error messages great again
Diffstat (limited to 'src/c8asm/common.h')
-rw-r--r--src/c8asm/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c8asm/common.h b/src/c8asm/common.h
index 49af0f7..aa32b2b 100644
--- a/src/c8asm/common.h
+++ b/src/c8asm/common.h
@@ -3,6 +3,9 @@
#include <rune.h>
+#define DIE_AT_POS_WITH_CODE(HL, P, ...) \
+ die_at_pos_with_code(filename, filebuf, (HL), (P)-baseptr, __VA_ARGS__);
+
extern size_t filesize;
extern const char *filename;
extern const char8_t *baseptr;