MCPcopy Create free account
hub / github.com/TASEmulators/fceux / lua_tocfunction

Function lua_tocfunction

src/lua/src/lapi.c:379–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377
378
379LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) {
380 StkId o = index2adr(L, idx);
381 return (!iscfunction(o)) ? NULL : clvalue(o)->c.f;
382}
383
384
385LUA_API void *lua_touserdata (lua_State *L, int idx) {

Callers 2

toCStringFunction · 0.85
aux_closeFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected