summaryrefslogtreecommitdiff
path: root/xs_json.h
diff options
context:
space:
mode:
authorGravatar default2025-02-13 08:37:58 +0100
committerGravatar default2025-02-13 08:37:58 +0100
commit4ccb52de741c90b086847193c425be0b97bdbf53 (patch)
treedb31f9b78d7cd3b3434b7c7bcf54ad873c916f28 /xs_json.h
parentLimit JSON depth (diff)
downloadsnac2-4ccb52de741c90b086847193c425be0b97bdbf53.tar.gz
snac2-4ccb52de741c90b086847193c425be0b97bdbf53.tar.xz
snac2-4ccb52de741c90b086847193c425be0b97bdbf53.zip
Added a default MAX_JSON_DEPTH inside xs_json.h.
Diffstat (limited to '')
-rw-r--r--xs_json.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xs_json.h b/xs_json.h
index b9421e4..8b449a9 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -4,6 +4,10 @@
4 4
5#define _XS_JSON_H 5#define _XS_JSON_H
6 6
7#ifndef MAX_JSON_DEPTH
8#define MAX_JSON_DEPTH 32
9#endif
10
7int xs_json_dump(const xs_val *data, int indent, FILE *f); 11int xs_json_dump(const xs_val *data, int indent, FILE *f);
8xs_str *xs_json_dumps(const xs_val *data, int indent); 12xs_str *xs_json_dumps(const xs_val *data, int indent);
9 13