提交 51371c89 编写于 作者: E Eswar Yaganti

Changed the #define values of cJSON* data types

We can use bitops to check if the parsed JSON is of a particular types
using OR
上级 e95313ad
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册