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

Function getthread

third-party/lua-5.1.5/src/ldblib.c:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76static lua_State *getthread (lua_State *L, int *arg) {
77 if (lua_isthread(L, 1)) {
78 *arg = 1;
79 return lua_tothread(L, 1);
80 }
81 else {
82 *arg = 0;
83 return L;
84 }
85}
86
87
88static 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_errorfbFunction · 0.70

Calls 1

lua_tothreadFunction · 0.70

Tested by

no test coverage detected