From 5021e799dc8b8a5c47d4d62d1760096ac2329143 Mon Sep 17 00:00:00 2001 From: nnkur Date: Wed, 7 Dec 2016 15:47:08 +0300 Subject: [PATCH] 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. --- src/lib_json/json_reader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index ae248e7..6de6a31 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -45,12 +45,12 @@ #pragma warning(disable : 4996) #endif -// Define JSONCPP_STACK_LIMIT as an appropriate integer at compile time to change the stack limit -#if !defined(JSONCPP_STACK_LIMIT) -#define JSONCPP_STACK_LIMIT 1000 +// Define JSONCPP_DEPRECATED_STACK_LIMIT as an appropriate integer at compile time to change the stack limit +#if !defined(JSONCPP_DEPRECATED_STACK_LIMIT) +#define JSONCPP_DEPRECATED_STACK_LIMIT 1000 #endif -static size_t const stackLimit_g = JSONCPP_STACK_LIMIT; // see readValue() +static size_t const stackLimit_g = JSONCPP_DEPRECATED_STACK_LIMIT; // see readValue() namespace Json {