Create jsonproc tool

Add custom function hooks to jsonproc

Add jsonproc to build_tools.sh

Newer g++
This commit is contained in:
Marcus Huderle
2019-04-27 14:50:53 -05:00
committed by huderlem
parent fe59902b8a
commit 483648e372
8 changed files with 24387 additions and 1 deletions

32
tools/jsonproc/jsonproc.h Executable file
View File

@@ -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