MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_tocfunction

Function lua_tocfunction

WebGLPlugins/lapi.c:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402
403
404LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {
405 StkId o = index2addr(L, idx);
406 if (ttislcf(o)) return fvalue(o);
407 else if (ttisCclosure(o))
408 return clCvalue(o)->f;
409 else return NULL; /* not a C function */
410}
411
412
413LUA_API void *lua_touserdata (lua_State *L, int idx) {

Callers 1

csharp_function_wrapFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected