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

Function getthread

third-party/lua-5.2.4/src/ldblib.c:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94static lua_State *getthread (lua_State *L, int *arg) {
95 if (lua_isthread(L, 1)) {
96 *arg = 1;
97 return lua_tothread(L, 1);
98 }
99 else {
100 *arg = 0;
101 return L;
102 }
103}
104
105
106static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {

Callers 6

db_getinfoFunction · 0.70
db_getlocalFunction · 0.70
db_setlocalFunction · 0.70
db_sethookFunction · 0.70
db_gethookFunction · 0.70
db_tracebackFunction · 0.70

Calls 1

lua_tothreadFunction · 0.70

Tested by

no test coverage detected