Skip to content

Commit 58d4b56

Browse files
committed
Config macros to be adjustable externally
1 parent cd6f619 commit 58d4b56

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ modules.order
5050
Module.symvers
5151
Mkfile.old
5252
dkms.conf
53+
54+
build/

json_parser.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@ extern "C" {
2222
#include <ctype.h>
2323
#include <math.h>
2424

25+
#ifndef JSON_DEFAULT_MAX_TOKENS
2526
#define JSON_DEFAULT_MAX_TOKENS 128
27+
#endif
28+
29+
#ifndef JSON_DEFAULT_MAX_DEPTH
2630
#define JSON_DEFAULT_MAX_DEPTH 32
31+
#endif
32+
33+
#ifndef JSON_DEFAULT_MAX_STRING
2734
#define JSON_DEFAULT_MAX_STRING 256
35+
#endif
2836

2937
typedef enum {
3038
JSON_ERROR_NONE = 0,

0 commit comments

Comments
 (0)