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