annotate json/config.h @ 49:178642d134a7 tip

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