summaryrefslogtreecommitdiff
path: root/tools/br_ips/global.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-07-29 21:10:54 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-07-29 21:10:54 -0400
commite130a00cdf69c58dbff8e98a69559aeb33f87b60 (patch)
treee128e502a2229f5d934f0436a0eb31dc86350bbb /tools/br_ips/global.h
parentef4c86fbfdd18b78700f61b629907a85579197c0 (diff)
parentd4cc0e161bf103d3d3e01fefa02e867d4a2053c2 (diff)
Merge branch 'master' into slot_machine
Diffstat (limited to 'tools/br_ips/global.h')
-rw-r--r--tools/br_ips/global.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/br_ips/global.h b/tools/br_ips/global.h
new file mode 100644
index 000000000..b82c516ba
--- /dev/null
+++ b/tools/br_ips/global.h
@@ -0,0 +1,27 @@
+#ifndef GUARD_BR_IPS_GLOBAL_H
+#define GUARD_BR_IPS_GLOBAL_H
+
+#ifdef _MSC_VER
+
+#define FATAL_ERROR(format, ...) \
+do { \
+ fprintf(stderr, format, __VA_ARGS__); \
+ exit(1); \
+} while (0)
+
+#else
+
+#define FATAL_ERROR(format, ...) \
+do { \
+ fprintf(stderr, format, ##__VA_ARGS__); \
+ exit(1); \
+} while (0)
+
+#endif // _MSC_VER
+
+typedef struct Hunk {
+ uint32_t offset;
+ size_t size;
+} hunk_t;
+
+#endif //GUARD_BR_IPS_GLOBAL_H