refactor: use JSON_MAX_DEPTH everywhere

This commit is contained in:
Jason Nader 2021-10-25 13:28:32 +09:00
parent b223f70250
commit 18d1ddccb0
No known key found for this signature in database
GPG key ID: EE220FCAA09AF23D
3 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,5 @@
#define _POSIX_C_SOURCE 200809L
// arbitrary number, it's probably sufficient, higher number = more memory usage
#define JSON_MAX_DEPTH 512
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>