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

Function lua_tocfunction

libs/lua/lapi.c:438–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436
437
438LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {
439 const TValue *o = index2value(L, idx);
440 if (ttislcf(o)) return fvalue(o);
441 else if (ttisCclosure(o))
442 return clCvalue(o)->f;
443 else return NULL; /* not a C function */
444}
445
446
447l_sinline void *touserdata (const TValue *o) {

Callers 2

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected