MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_IsTrue

Function cJSON_IsTrue

general/package/xmdp/src/cjson/cJSON.c:2883–2891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2881}
2882
2883CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item)
2884{
2885 if (item == NULL)
2886 {
2887 return false;
2888 }
2889
2890 return (item->type & 0xff) == cJSON_True;
2891}
2892
2893
2894CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected