diff options
| author | 2025-02-13 08:36:34 +0100 | |
|---|---|---|
| committer | 2025-02-13 08:36:34 +0100 | |
| commit | af8a95bbf0b3709d605175da92b93ad1d0aa0bd3 (patch) | |
| tree | e42906a03f0d8cd45cad46803512b50bafc4956a /snac.h | |
| parent | Don't show the bookmark emoji to strangers. (diff) | |
| download | penes-snac2-af8a95bbf0b3709d605175da92b93ad1d0aa0bd3.tar.gz penes-snac2-af8a95bbf0b3709d605175da92b93ad1d0aa0bd3.tar.xz penes-snac2-af8a95bbf0b3709d605175da92b93ad1d0aa0bd3.zip | |
Limit JSON depth
Diffstat (limited to '')
| -rw-r--r-- | snac.h | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -16,6 +16,10 @@ | |||
| 16 | #define MAX_THREADS 256 | 16 | #define MAX_THREADS 256 |
| 17 | #endif | 17 | #endif |
| 18 | 18 | ||
| 19 | #ifndef MAX_JSON_DEPTH | ||
| 20 | #define MAX_JSON_DEPTH 8 | ||
| 21 | #endif | ||
| 22 | |||
| 19 | #ifndef MAX_CONVERSATION_LEVELS | 23 | #ifndef MAX_CONVERSATION_LEVELS |
| 20 | #define MAX_CONVERSATION_LEVELS 48 | 24 | #define MAX_CONVERSATION_LEVELS 48 |
| 21 | #endif | 25 | #endif |