mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-31 01:13:04 +08:00
Merge pull request #26 from nagamalli9999/master
Using values in powers of two for cJSON_* constants
This commit is contained in:
commit
a6a75645e4
14
cJSON.h
14
cJSON.h
@ -29,13 +29,13 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* cJSON Types: */
|
/* cJSON Types: */
|
||||||
#define cJSON_False 0
|
#define cJSON_False (1 << 0)
|
||||||
#define cJSON_True 1
|
#define cJSON_True (1 << 1)
|
||||||
#define cJSON_NULL 2
|
#define cJSON_NULL (1 << 2)
|
||||||
#define cJSON_Number 3
|
#define cJSON_Number (1 << 3)
|
||||||
#define cJSON_String 4
|
#define cJSON_String (1 << 4)
|
||||||
#define cJSON_Array 5
|
#define cJSON_Array (1 << 5)
|
||||||
#define cJSON_Object 6
|
#define cJSON_Object (1 << 6)
|
||||||
|
|
||||||
#define cJSON_IsReference 256
|
#define cJSON_IsReference 256
|
||||||
#define cJSON_StringIsConst 512
|
#define cJSON_StringIsConst 512
|
||||||
|
Loading…
x
Reference in New Issue
Block a user