MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getthread

Function getthread

Source/Misc/lua/src/lua.c:11592–11601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11590
11591
11592static lua_State *getthread (lua_State *L, int *arg) {
11593if (lua_isthread(L, 1)) {
11594*arg = 1;
11595return lua_tothread(L, 1);
11596}
11597else {
11598*arg = 0;
11599return L;
11600}
11601}
11602
11603
11604static 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