MCPcopy Create free account
hub / github.com/defold/defold / getthread

Function getthread

engine/lua/src/lua/ldblib.c:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75static lua_State *getthread (lua_State *L, int *arg) {
76 if (lua_isthread(L, 1)) {
77 *arg = 1;
78 return lua_tothread(L, 1);
79 }
80 else {
81 *arg = 0;
82 return L;
83 }
84}
85
86
87static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {

Callers 6

db_getinfoFunction · 0.85
db_getlocalFunction · 0.85
db_setlocalFunction · 0.85
db_sethookFunction · 0.85
db_gethookFunction · 0.85
db_errorfbFunction · 0.85

Calls 1

lua_tothreadFunction · 0.85

Tested by

no test coverage detected