MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / currentpc

Function currentpc

deps/lua/src/ldebug.c:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36static int currentpc (lua_State *L, CallInfo *ci) {
37 if (!isLua(ci)) return -1; /* function is not a Lua function? */
38 if (ci == L->ci)
39 ci->savedpc = L->savedpc;
40 return pcRel(ci->savedpc, ci_func(ci)->l.p);
41}
42
43
44static int currentline (lua_State *L, CallInfo *ci) {

Callers 4

currentlineFunction · 0.85
findlocalFunction · 0.85
getobjnameFunction · 0.85
getfuncnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected