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

Function savArg

common/script/checkpoint_api.cpp:96–103  ·  view source on GitHub ↗

An open save-archive handle: a stale one (closed, or from a previous run) is as much a script bug as an out-of-range index.

Source from the content-addressed store, hash-verified

94 // An open save-archive handle: a stale one (closed, or from a previous run)
95 // is as much a script bug as an out-of-range index.
96 int savArg(const ScriptArgs& args, int i)
97 {
98 const int handle = args.num(i);
99 if (!host().savValid(handle)) {
100 args.fail("argument %d is %d, not an open save handle", i + 1, handle);
101 }
102 return handle;
103 }
104
105 std::string idToHex(uint64_t id)
106 {

Callers 8

ckpt_sav_readFunction · 0.85
ckpt_sav_writeFunction · 0.85
ckpt_sav_deleteFunction · 0.85
ckpt_sav_mkdirFunction · 0.85
ckpt_sav_rmdirFunction · 0.85
ckpt_sav_renameFunction · 0.85
ckpt_sav_listFunction · 0.85
ckpt_sav_commitFunction · 0.85

Calls 3

numMethod · 0.80
failMethod · 0.80
savValidMethod · 0.45

Tested by

no test coverage detected