MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / tree

Function tree

common/script/json_api.cpp:48–51  ·  view source on GitHub ↗

struct JSON* is opaque to scripts, so the only thing checkable at the boundary is that a pointer was passed at all — a NULL one used to fault inside nlohmann, several frames from the call that got it wrong.

Source from the content-addressed store, hash-verified

46 // boundary is that a pointer was passed at all — a NULL one used to fault
47 // inside nlohmann, several frames from the call that got it wrong.
48 nlohmann::json* tree(const ScriptArgs& args, int i)
49 {
50 return (nlohmann::json*)args.ptr(i);
51 }
52
53 // The heap's destroy function for a tree: json_new's `new`, undone.
54 void deleteJson(void* ptr)

Callers 15

ckpt_json_parseFunction · 0.85
ckpt_json_deleteFunction · 0.85
ckpt_json_is_validFunction · 0.85
ckpt_json_is_intFunction · 0.85
ckpt_json_is_boolFunction · 0.85
ckpt_json_is_stringFunction · 0.85
ckpt_json_is_arrayFunction · 0.85
ckpt_json_is_objectFunction · 0.85
ckpt_json_get_intFunction · 0.85
ckpt_json_get_boolFunction · 0.85
ckpt_json_get_stringFunction · 0.85
ckpt_json_array_sizeFunction · 0.85

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected