aboutsummaryrefslogtreecommitdiff
path: root/client/global.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-17 23:16:21 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-17 23:16:21 +0100
commit012f9e4156919157bfff0d5ce8f105a04b0c4a70 (patch)
treecacce5438a0e6fa8baef4ee4ef96951d7b1dd8a4 /client/global.h
parentadd6b39aece179a0e0ad425af72b8a043a0d3188 (diff)
client: Start working on a simple client
Diffstat (limited to 'client/global.h')
-rw-r--r--client/global.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/global.h b/client/global.h
new file mode 100644
index 0000000..de0873b
--- /dev/null
+++ b/client/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)));