MCPcopy Create free account
hub / github.com/SVF-tools/SVF / cJSON_GetNumberValue

Function cJSON_GetNumberValue

svf/lib/Util/cJSON.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item)
111{
112 if (!cJSON_IsNumber(item))
113 {
114 return (double) NAN;
115 }
116
117 return item->valuedouble;
118}
119
120/* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
121#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 15)

Callers

nothing calls this directly

Calls 1

cJSON_IsNumberFunction · 0.85

Tested by

no test coverage detected