rt300@13
|
1 #ifndef JSON_CONFIG_H_INCLUDED
|
rt300@13
|
2 # define JSON_CONFIG_H_INCLUDED
|
rt300@13
|
3
|
rt300@13
|
4 /// If defined, indicates that json library is embedded in CppTL library.
|
rt300@13
|
5 //# define JSON_IN_CPPTL 1
|
rt300@13
|
6
|
rt300@13
|
7 /// If defined, indicates that json may leverage CppTL library
|
rt300@13
|
8 //# define JSON_USE_CPPTL 1
|
rt300@13
|
9 /// If defined, indicates that cpptl vector based map should be used instead of std::map
|
rt300@13
|
10 /// as Value container.
|
rt300@13
|
11 //# define JSON_USE_CPPTL_SMALLMAP 1
|
rt300@13
|
12 /// If defined, indicates that Json specific container should be used
|
rt300@13
|
13 /// (hash table & simple deque container with customizable allocator).
|
rt300@13
|
14 /// THIS FEATURE IS STILL EXPERIMENTAL!
|
rt300@13
|
15 //# define JSON_VALUE_USE_INTERNAL_MAP 1
|
rt300@13
|
16 /// Force usage of standard new/malloc based allocator instead of memory pool based allocator.
|
rt300@13
|
17 /// The memory pools allocator used optimization (initializing Value and ValueInternalLink
|
rt300@13
|
18 /// as if it was a POD) that may cause some validation tool to report errors.
|
rt300@13
|
19 /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined.
|
rt300@13
|
20 //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1
|
rt300@13
|
21
|
rt300@13
|
22 /// If defined, indicates that Json use exception to report invalid type manipulation
|
rt300@13
|
23 /// instead of C assert macro.
|
rt300@13
|
24 # define JSON_USE_EXCEPTION 1
|
rt300@13
|
25
|
rt300@13
|
26 # ifdef JSON_IN_CPPTL
|
rt300@13
|
27 # include <cpptl/config.h>
|
rt300@13
|
28 # ifndef JSON_USE_CPPTL
|
rt300@13
|
29 # define JSON_USE_CPPTL 1
|
rt300@13
|
30 # endif
|
rt300@13
|
31 # endif
|
rt300@13
|
32
|
rt300@13
|
33 # ifdef JSON_IN_CPPTL
|
rt300@13
|
34 # define JSON_API CPPTL_API
|
rt300@13
|
35 # elif defined(JSON_DLL_BUILD)
|
rt300@13
|
36 # define JSON_API __declspec(dllexport)
|
rt300@13
|
37 # elif defined(JSON_DLL)
|
rt300@13
|
38 # define JSON_API __declspec(dllimport)
|
rt300@13
|
39 # else
|
rt300@13
|
40 # define JSON_API
|
rt300@13
|
41 # endif
|
rt300@13
|
42
|
rt300@13
|
43 #endif // JSON_CONFIG_H_INCLUDED
|