rt300@13: #ifndef JSON_CONFIG_H_INCLUDED rt300@13: # define JSON_CONFIG_H_INCLUDED rt300@13: rt300@13: /// If defined, indicates that json library is embedded in CppTL library. rt300@13: //# define JSON_IN_CPPTL 1 rt300@13: rt300@13: /// If defined, indicates that json may leverage CppTL library rt300@13: //# define JSON_USE_CPPTL 1 rt300@13: /// If defined, indicates that cpptl vector based map should be used instead of std::map rt300@13: /// as Value container. rt300@13: //# define JSON_USE_CPPTL_SMALLMAP 1 rt300@13: /// If defined, indicates that Json specific container should be used rt300@13: /// (hash table & simple deque container with customizable allocator). rt300@13: /// THIS FEATURE IS STILL EXPERIMENTAL! rt300@13: //# define JSON_VALUE_USE_INTERNAL_MAP 1 rt300@13: /// Force usage of standard new/malloc based allocator instead of memory pool based allocator. rt300@13: /// The memory pools allocator used optimization (initializing Value and ValueInternalLink rt300@13: /// as if it was a POD) that may cause some validation tool to report errors. rt300@13: /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined. rt300@13: //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1 rt300@13: rt300@13: /// If defined, indicates that Json use exception to report invalid type manipulation rt300@13: /// instead of C assert macro. rt300@13: # define JSON_USE_EXCEPTION 1 rt300@13: rt300@13: # ifdef JSON_IN_CPPTL rt300@13: # include rt300@13: # ifndef JSON_USE_CPPTL rt300@13: # define JSON_USE_CPPTL 1 rt300@13: # endif rt300@13: # endif rt300@13: rt300@13: # ifdef JSON_IN_CPPTL rt300@13: # define JSON_API CPPTL_API rt300@13: # elif defined(JSON_DLL_BUILD) rt300@13: # define JSON_API __declspec(dllexport) rt300@13: # elif defined(JSON_DLL) rt300@13: # define JSON_API __declspec(dllimport) rt300@13: # else rt300@13: # define JSON_API rt300@13: # endif rt300@13: rt300@13: #endif // JSON_CONFIG_H_INCLUDED