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

Function ckpt_json_is_int

common/script/json_api.cpp:97–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void ckpt_json_is_int(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
98{
99 ReturnValue->Val->Integer = tree(ScriptArgs(Parser, Param, NumArgs, "json_is_int"), 0)->is_number_integer() ? 1 : 0;
100}
101
102void ckpt_json_is_bool(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
103{

Callers

nothing calls this directly

Calls 2

treeFunction · 0.85
ScriptArgsClass · 0.85

Tested by

no test coverage detected