MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_ispropnull

Function get_ispropnull

tools/cdb2_sqlreplay/cdb2_sqlreplay.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84static bool get_ispropnull(cson_value *objval, const char *key)
85{
86 cson_object *obj;
87 cson_value_fetch_object(objval, &obj);
88 cson_value *propval = cson_object_get(obj, key);
89 if (propval == nullptr || cson_value_is_null(propval))
90 return true;
91 return false;
92}
93
94static const char *get_strprop(cson_value *objval, const char *key) {
95 cson_object *obj;

Callers 1

do_bindingsFunction · 0.85

Calls 3

cson_value_fetch_objectFunction · 0.85
cson_object_getFunction · 0.85
cson_value_is_nullFunction · 0.85

Tested by

no test coverage detected