Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:00:25

0001 #ifndef JSON_CONFIG_H_INCLUDED
0002 #define JSON_CONFIG_H_INCLUDED
0003 
0004 /// If defined, indicates that json library is embedded in CppTL library.
0005 //# define JSON_IN_CPPTL 1
0006 
0007 /// If defined, indicates that json may leverage CppTL library
0008 //#  define JSON_USE_CPPTL 1
0009 /// If defined, indicates that cpptl vector based map should be used instead of std::map
0010 /// as Value container.
0011 //#  define JSON_USE_CPPTL_SMALLMAP 1
0012 /// If defined, indicates that Json specific container should be used
0013 /// (hash table & simple deque container with customizable allocator).
0014 /// THIS FEATURE IS STILL EXPERIMENTAL!
0015 //#  define JSON_VALUE_USE_INTERNAL_MAP 1
0016 /// Force usage of standard new/malloc based allocator instead of memory pool based allocator.
0017 /// The memory pools allocator used optimization (initializing Value and ValueInternalLink
0018 /// as if it was a POD) that may cause some validation tool to report errors.
0019 /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined.
0020 //#  define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1
0021 
0022 /// If defined, indicates that Json use exception to report invalid type manipulation
0023 /// instead of C assert macro.
0024 #define JSON_USE_EXCEPTION 1
0025 
0026 #ifdef JSON_IN_CPPTL
0027 #include <cpptl/config.h>
0028 #ifndef JSON_USE_CPPTL
0029 #define JSON_USE_CPPTL 1
0030 #endif
0031 #endif
0032 
0033 #ifdef JSON_IN_CPPTL
0034 #define JSON_API CPPTL_API
0035 #elif defined(JSON_DLL_BUILD)
0036 #define JSON_API __declspec(dllexport)
0037 #elif defined(JSON_DLL)
0038 #define JSON_API __declspec(dllimport)
0039 #else
0040 #define JSON_API
0041 #endif
0042 
0043 #endif  // JSON_CONFIG_H_INCLUDED