aboutsummaryrefslogtreecommitdiff
path: root/xs_json.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-02-13 08:37:58 +0100
committerdefault <nobody@localhost>2025-02-13 08:37:58 +0100
commit4ccb52de741c90b086847193c425be0b97bdbf53 (patch)
treedb31f9b78d7cd3b3434b7c7bcf54ad873c916f28 /xs_json.h
parentaf8a95bbf0b3709d605175da92b93ad1d0aa0bd3 (diff)
Added a default MAX_JSON_DEPTH inside xs_json.h.
Diffstat (limited to 'xs_json.h')
-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 @@
#define _XS_JSON_H
+#ifndef MAX_JSON_DEPTH
+#define MAX_JSON_DEPTH 32
+#endif
+
int xs_json_dump(const xs_val *data, int indent, FILE *f);
xs_str *xs_json_dumps(const xs_val *data, int indent);