summaryrefslogtreecommitdiff
path: root/tools/jsonproc/jsonproc.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-19 18:03:24 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-19 18:28:55 -0400
commit7eeba327bd6dc235a33f06a7779e3b3c52f04475 (patch)
treee9639b90704ac227cb14a0ec87b9dc0b2a478a15 /tools/jsonproc/jsonproc.h
parentcaa193364bf786cb567ed16eb4670ed2cc4cb362 (diff)
Dump items and start decomp item_use
Diffstat (limited to 'tools/jsonproc/jsonproc.h')
-rw-r--r--tools/jsonproc/jsonproc.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/jsonproc/jsonproc.h b/tools/jsonproc/jsonproc.h
new file mode 100644
index 000000000..575fb3756
--- /dev/null
+++ b/tools/jsonproc/jsonproc.h
@@ -0,0 +1,32 @@
+// jsonproc.h
+
+#ifndef JSONPROC_H
+#define JSONPROC_H
+
+#include <cstdlib>
+#include <cstdio>
+using std::fprintf; using std::exit;
+
+#include <cstdlib>
+
+#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
+
+#endif // JSONPROC_H