mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-29 13:50:42 +01:00
32 lines
667 B
C
32 lines
667 B
C
// 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
|