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

Method numInRange

common/script/scriptargs.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116int ScriptArgs::numInRange(int i, int min, int max) const
117{
118 const int n = intAt(i);
119 if (n < min || n > max) {
120 fail("argument %d is %d, must be between %d and %d", i + 1, n, min, max);
121 }
122 return n;
123}
124
125size_t ScriptArgs::byteCount(int i) const
126{

Callers 3

ckpt_title_backup_pathFunction · 0.80
ckpt_sav_openFunction · 0.80
layerArgFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected