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

Function ckpt_json_is_valid

common/script/json_api.cpp:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void ckpt_json_is_valid(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
93{
94 ReturnValue->Val->Integer = tree(ScriptArgs(Parser, Param, NumArgs, "json_is_valid"), 0)->is_discarded() ? 0 : 1;
95}
96
97void ckpt_json_is_int(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
98{

Callers

nothing calls this directly

Calls 2

treeFunction · 0.85
ScriptArgsClass · 0.85

Tested by

no test coverage detected