MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / lua_checkpc

Function lua_checkpc

Dependencies/lua/src/ltests.c:429–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427
428
429static int lua_checkpc (CallInfo *ci) {
430 if (!isLua(ci)) return 1;
431 else {
432 StkId f = ci->func.p;
433 Proto *p = clLvalue(s2v(f))->p;
434 return p->code <= ci->u.l.savedpc &&
435 ci->u.l.savedpc <= p->code + p->sizecode;
436 }
437}
438
439
440static void checkstack (global_State *g, lua_State *L1) {

Callers 1

checkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected