diff options
| author | default <nobody@localhost> | 2025-02-13 08:37:58 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-02-13 08:37:58 +0100 |
| commit | 4ccb52de741c90b086847193c425be0b97bdbf53 (patch) | |
| tree | db31f9b78d7cd3b3434b7c7bcf54ad873c916f28 /xs_json.h | |
| parent | af8a95bbf0b3709d605175da92b93ad1d0aa0bd3 (diff) | |
Added a default MAX_JSON_DEPTH inside xs_json.h.
Diffstat (limited to 'xs_json.h')
| -rw-r--r-- | xs_json.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |