import from github
This commit is contained in:
31
tools/mapjson/mapjson.h
Normal file
31
tools/mapjson/mapjson.h
Normal file
@ -0,0 +1,31 @@
|
||||
// mapjson.h
|
||||
|
||||
#ifndef MAPJSON_H
|
||||
#define MAPJSON_H
|
||||
|
||||
#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 // MAPJSON_H
|
Reference in New Issue
Block a user