diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2019-08-15 16:42:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 16:42:37 -0500 |
commit | e751d33afb9410d63fc7b5c8da211a8d62eaeb21 (patch) | |
tree | 016da807f9f85a9dad91c1b091295d5c68375701 /tools/jsonproc/jsonproc.h | |
parent | a5d8669840e5cb411f03929118608cb79ee026ad (diff) | |
parent | f3bd844f5622fad017d1752734ab1e128006ea7b (diff) |
Merge pull request #16 from PikalaxALT/master
Update binaries again; add build and install scripts
Diffstat (limited to 'tools/jsonproc/jsonproc.h')
-rw-r--r-- | tools/jsonproc/jsonproc.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/jsonproc/jsonproc.h b/tools/jsonproc/jsonproc.h new file mode 100644 index 0000000..575fb37 --- /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 |