mirror of
https://github.com/pret/pmd-red.git
synced 2025-02-09 06:36:45 +00:00
![Seth Barberee](/assets/img/avatar_default.png)
* move Thunderwave and Tiny Woods pokemon to json * rule tweaking to actually build tool before parsing JSON * delete .inc pokemon for tiny Woods and Thunderwave * silence git complaining about br_ips and ips_patch * use defines for species and pass the header file for species * convert sinister woods * convert MtThunderPeak * convert silent chasm * add trial floor_id w/ tiny woods * change make rule name to fix compile * MtSteel converted and bugfix * convert few floor headers and great canyon pokemon * code cleanup * unify unkData into UnkTextStruct2 * more code cleanup and some text decomp * doc more funcs and decomp/split some stuff * document more save stuff * more save work and move some data * pika sniped UpdateNatureTotal * decomp a litle and convert a few more dungeons * better scanning for json files * mt freeze and peak
32 lines
683 B
C
32 lines
683 B
C
// dungeonjson.h
|
|
|
|
#ifndef DUNGEONJSON_H
|
|
#define DUNGEONJSON_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 // DUNGEONJSON_H
|