summaryrefslogtreecommitdiff
path: root/src/defines.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/defines.hpp')
-rw-r--r--src/defines.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/defines.hpp b/src/defines.hpp
new file mode 100644
index 00000000..f72dbb18
--- /dev/null
+++ b/src/defines.hpp
@@ -0,0 +1,9 @@
+#include "includes.hpp"
+
+#ifndef NDEBUG
+#define ISDEBUG true
+#else
+#define ISDEBUG false
+#endif
+
+#define RIP(format, ... ) { fprintf(stderr, format "\n", ##__VA_ARGS__); exit(EXIT_FAILURE); } \ No newline at end of file