Skip to content

Commit

Permalink
Merge pull request #26 from nagamalli9999/master
Browse files Browse the repository at this point in the history
Using values in powers of two for cJSON_* constants
  • Loading branch information
kbranigan committed Mar 6, 2016
2 parents 1dc9435 + 8fbfa8e commit c4e9c1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cJSON.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4e9c1d

Please sign in to comment.