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