aboutsummaryrefslogtreecommitdiff
path: root/src/c8asm/common.h
blob: 114657af3f91d753cd835be288df4157db78220d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef AHOY_C8ASM_COMMON_H
#define AHOY_C8ASM_COMMON_H

#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;
extern struct u8view filebuf;

#endif /* !AHOY_C8ASM_COMMON_H */