MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / isinstack

Function isinstack

third-party/lua-5.3.5/src/ldebug.c:546–549  ·  view source on GitHub ↗

** The subtraction of two potentially unrelated pointers is ** not ISO C, but it should not crash a program; the subsequent ** checks are ISO C and ensure a correct result. */

Source from the content-addressed store, hash-verified

544** checks are ISO C and ensure a correct result.
545*/
546static int isinstack (CallInfo *ci, const TValue *o) {
547 ptrdiff_t i = o - ci->u.l.base;
548 return (0 <= i && i < (ci->top - ci->u.l.base) && ci->u.l.base + i == o);
549}
550
551
552/*

Callers 1

varinfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected