MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_IsBool

Function cJSON_IsBool

libapp2sys/src/main/cpp/cjson/cJSON.c:2738–2746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2736
2737
2738CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)
2739{
2740 if (item == NULL)
2741 {
2742 return false;
2743 }
2744
2745 return (item->type & (cJSON_True | cJSON_False)) != 0;
2746}
2747CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item)
2748{
2749 if (item == NULL)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected