MCPcopy Create free account
hub / github.com/danomatika/ofxLua / getthread

Function getthread

libs/lua/ldblib.c:94–103  ·  view source on GitHub ↗

** Auxiliary function used by several library functions: check for ** an optional thread as function's first argument and set 'arg' with ** 1 if this argument is present (so that functions can skip it to ** access their other arguments) */

Source from the content-addressed store, hash-verified

92** access their other arguments)
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; /* function will operate over current thread */
102 }
103}
104
105
106/*

Callers 6

db_getinfoFunction · 0.85
db_getlocalFunction · 0.85
db_setlocalFunction · 0.85
db_sethookFunction · 0.85
db_gethookFunction · 0.85
db_tracebackFunction · 0.85

Calls 1

lua_tothreadFunction · 0.85

Tested by

no test coverage detected