MCPcopy Create free account
hub / github.com/DFHack/dfhack / findpcall

Function findpcall

depends/lua/src/ldo.c:566–573  ·  view source on GitHub ↗

** Try to find a suspended protected call (a "recover point") for the ** given thread. */

Source from the content-addressed store, hash-verified

564** given thread.
565*/
566static CallInfo *findpcall (lua_State *L) {
567 CallInfo *ci;
568 for (ci = L->ci; ci != NULL; ci = ci->previous) { /* search for a pcall */
569 if (ci->callstatus & CIST_YPCALL)
570 return ci;
571 }
572 return NULL; /* no pending pcall */
573}
574
575
576/*

Callers 1

recoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected