#285 set FC_MAX_STRING_OBJECT_DEPTH default value in config file
This commit is contained in:
parent
6669f3e631
commit
ddf85dcb2a
2 changed files with 7 additions and 1 deletions
|
|
@ -3,6 +3,11 @@
|
||||||
#define FC_PACK_MAX_DEPTH 1000
|
#define FC_PACK_MAX_DEPTH 1000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FC_MAX_STRING_OBJECT_DEPTH
|
||||||
|
// how many levels of nested objects are proceed for string functions
|
||||||
|
#define FC_MAX_STRING_OBJECT_DEPTH 200
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef FC_MAX_LOG_OBJECT_DEPTH
|
#ifndef FC_MAX_LOG_OBJECT_DEPTH
|
||||||
// how many levels of nested objects are displayed in log messages
|
// how many levels of nested objects are displayed in log messages
|
||||||
#define FC_MAX_LOG_OBJECT_DEPTH 1000
|
#define FC_MAX_LOG_OBJECT_DEPTH 1000
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#include <fc/utility.hpp>
|
#include <fc/utility.hpp>
|
||||||
#include <fc/fwd.hpp>
|
#include <fc/fwd.hpp>
|
||||||
#include <fc/optional.hpp>
|
#include <fc/optional.hpp>
|
||||||
|
#include <fc/config.hpp>
|
||||||
|
|
||||||
#ifndef USE_FC_STRING
|
#ifndef USE_FC_STRING
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
@ -25,7 +26,7 @@ namespace fc
|
||||||
|
|
||||||
typedef fc::optional<fc::string> ostring;
|
typedef fc::optional<fc::string> ostring;
|
||||||
class variant_object;
|
class variant_object;
|
||||||
fc::string format_string( const fc::string&, const variant_object&, uint32_t max_object_depth = 200 );
|
fc::string format_string( const fc::string&, const variant_object&, uint32_t max_object_depth = FC_MAX_STRING_OBJECT_DEPTH );
|
||||||
fc::string trim( const fc::string& );
|
fc::string trim( const fc::string& );
|
||||||
fc::string to_lower( const fc::string& );
|
fc::string to_lower( const fc::string& );
|
||||||
string trim_and_normalize_spaces( const string& s );
|
string trim_and_normalize_spaces( const string& s );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue