Add mapjson; update gbagfx, scaninc
This commit is contained in:
1 parent
d0a68de6e0
commit
7f920b887f
19 files changed
+2325
-345
No files matched your search
@@ -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