Skip to content

Commit 5021e79

Browse files
authored
Renamed JSONCPP_STACK_LIMIT to JSONCPP_DEPRECATED_STACK_LIMIT
Renamed JSONCPP_STACK_LIMIT to JSONCPP_DEPRECATED_STACK_LIMIT to stress that usage of this macros assumes old interface.
1 parent 2ecd2a5 commit 5021e79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib_json/json_reader.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
#pragma warning(disable : 4996)
4646
#endif
4747

48-
// Define JSONCPP_STACK_LIMIT as an appropriate integer at compile time to change the stack limit
49-
#if !defined(JSONCPP_STACK_LIMIT)
50-
#define JSONCPP_STACK_LIMIT 1000
48+
// Define JSONCPP_DEPRECATED_STACK_LIMIT as an appropriate integer at compile time to change the stack limit
49+
#if !defined(JSONCPP_DEPRECATED_STACK_LIMIT)
50+
#define JSONCPP_DEPRECATED_STACK_LIMIT 1000
5151
#endif
5252

53-
static size_t const stackLimit_g = JSONCPP_STACK_LIMIT; // see readValue()
53+
static size_t const stackLimit_g = JSONCPP_DEPRECATED_STACK_LIMIT; // see readValue()
5454

5555
namespace Json {
5656

0 commit comments

Comments
 (0)