MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / notInRange

Function notInRange

test/core/test_stackAlloc.c:24–28  ·  view source on GitHub ↗

no overlaps

Source from the content-addressed store, hash-verified

22 assert((y - x)*(z - y) > 0, "allocations must be in the same direction");
23 // no overlaps
24 function notInRange(value, begin, end) {
25 function errormsg() { return value + " must not be in the range (" + begin + ", " + end + "]"; }
26 if (begin < end) assert(!(value >= begin && value < end), errormsg());
27 else assert(!(value <= begin && value > end), errormsg());
28 }
29 notInRange(x, y, y + direction*size);
30 notInRange(x, z, z + direction*size);
31 notInRange(y, x, x + direction*size);

Callers 1

mainFunction · 0.85

Calls 2

errormsgFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected