MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getthread

Function getthread

other_src/lua/src/ldblib.cpp:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82static lua_State *getthread (lua_State *L, int *arg) {
83 if (lua_isthread(L, 1)) {
84 *arg = 1;
85 return lua_tothread(L, 1);
86 }
87 else {
88 *arg = 0;
89 return L;
90 }
91}
92
93
94static 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