mirror of
https://github.com/estkme-group/lpac
synced 2026-10-05 10:32:23 +02:00
9 lines
293 B
C
9 lines
293 B
C
#include "cJSON_ex.h"
|
|
|
|
inline cJSON *cJSON_AddStringOrNullToObject(cJSON *const object, const char *const name, const char *const string) {
|
|
if (string) {
|
|
return cJSON_AddStringToObject(object, name, string);
|
|
} else {
|
|
return cJSON_AddNullToObject(object, name);
|
|
}
|
|
}
|