diff options
Diffstat (limited to 'global.h')
-rw-r--r-- | global.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/global.h b/global.h new file mode 100644 index 0000000..de0873b --- /dev/null +++ b/global.h @@ -0,0 +1,14 @@ +#pragma once + +#include <stdbool.h> +#include <stdint.h> +#include <inttypes.h> +#include "memory.h" + +typedef int64_t i64; +typedef uint64_t u64; + +void die(const char *format,...) __attribute__((noreturn, format(printf, 1, 2))); +void die_perror(const char *func) __attribute__((noreturn)); + +void debug(const char *format,...) __attribute__((format(printf, 1, 2))); |