move #ifdefs to a JSON config

This commit is contained in:
rr- 2021-02-08 11:30:21 +01:00
parent 1b3bd187bc
commit 1eb83cd242
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
11 changed files with 1543 additions and 21 deletions

9
src/json_utils.h Normal file
View file

@ -0,0 +1,9 @@
#ifndef TR1M_JSON_UTILS_H
#define TR1M_JSON_UTILS_H
#include "json-parser/json.h"
json_value *get_json_field(json_value *root, json_type fieldType, const char *name, int *pIndex);
int get_json_boolean_field_value(json_value *root, const char *name);
#endif