cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit a6a75645e489c71d3098afcce5bcc4992db6a467
parent dbf16a0eb8242573e91f63a1c23aa7525734c7bd
Author: Kevin Branigan <kbranigan@gmail.com>
Date:   Sun,  6 Mar 2016 20:10:15 +0000

Merge pull request #26 from nagamalli9999/master

Using values in powers of two for cJSON_* constants

Diffstat:
McJSON.h | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/cJSON.h b/cJSON.h @@ -29,13 +29,13 @@ extern "C" #endif /* cJSON Types: */ -#define cJSON_False 0 -#define cJSON_True 1 -#define cJSON_NULL 2 -#define cJSON_Number 3 -#define cJSON_String 4 -#define cJSON_Array 5 -#define cJSON_Object 6 +#define cJSON_False (1 << 0) +#define cJSON_True (1 << 1) +#define cJSON_NULL (1 << 2) +#define cJSON_Number (1 << 3) +#define cJSON_String (1 << 4) +#define cJSON_Array (1 << 5) +#define cJSON_Object (1 << 6) #define cJSON_IsReference 256 #define cJSON_StringIsConst 512