diff options
author | Petri Lehtinen <petri@digip.org> | 2009-07-28 11:36:53 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2009-07-30 11:32:27 +0300 |
commit | 08d712d0382fe3b6340353b133f5c7f51e1946de (patch) | |
tree | 7d065a9430eee7911591142a0410c99993fa7d28 /src | |
parent | 2f4d6f8ae768886f8ee831bae169763856b5a827 (diff) | |
download | jansson-08d712d0382fe3b6340353b133f5c7f51e1946de.zip jansson-08d712d0382fe3b6340353b133f5c7f51e1946de.tar.gz jansson-08d712d0382fe3b6340353b133f5c7f51e1946de.tar.bz2 |
Add macro json_is_boolean
Diffstat (limited to 'src')
-rw-r--r-- | src/jansson.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jansson.h b/src/jansson.h index 91bf553..e7bd238 100644 --- a/src/jansson.h +++ b/src/jansson.h @@ -38,6 +38,7 @@ typedef struct { #define json_is_number(json) (json_is_integer(json) || json_is_real(json)) #define json_is_true(json) (json && json_typeof(json) == JSON_TRUE) #define json_is_false(json) (json && json_typeof(json) == JSON_FALSE) +#define json_is_boolean(json) (jsin_is_true(json) || json_is_false(json)) #define json_is_null(json) (json && json_typeof(json) == JSON_NULL) /* construction, destruction, reference counting */ |