diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-28 09:51:49 -0600 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-28 09:51:49 -0600 |
commit | c7e221808b2a8d882d18592339cc0b1afddbf7c1 (patch) | |
tree | 3e260671be2af40baf22d7a3ffe937fd98c13fe3 | |
parent | 7d34a7d572d0b261c2c819c7961e9263922e81c5 (diff) | |
download | yajl-c7e221808b2a8d882d18592339cc0b1afddbf7c1.tar.gz |
#ifdef __cpluplus wrappers for yajl_tree, closes #29
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/api/yajl_tree.h | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2.0.2 + * lth add #ifdef __cplusplus wrappers to yajl_tree to allow proper + usage from many populer C++ compilers. + 2.0.1 * lth generator flag to allow client to specify they want escaped solidi '/'. issue #28 diff --git a/src/api/yajl_tree.h b/src/api/yajl_tree.h index 8b377f6..de36272 100644 --- a/src/api/yajl_tree.h +++ b/src/api/yajl_tree.h @@ -33,6 +33,10 @@ #include <yajl/yajl_common.h> +#ifdef __cplusplus +extern "C" { +#endif + /** possible data types that a yajl_val_s can hold */ typedef enum { yajl_t_string = 1, @@ -174,4 +178,8 @@ YAJL_API yajl_val yajl_tree_get(yajl_val parent, const char ** path, yajl_type t /** Get a pointer to a yajl_val_array or NULL if the value is not an object. */ #define YAJL_GET_ARRAY(v) (YAJL_IS_ARRAY(v) ? &(v)->u.array : NULL) +#ifdef __cplusplus +} +#endif + #endif /* YAJL_TREE_H */ |