MCPcopy Create free account
hub / github.com/F-Stack/f-stack / newfenv

Function newfenv

app/redis-6.2.6/deps/lua/src/liolib.c:530–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528
529
530static void newfenv (lua_State *L, lua_CFunction cls) {
531 lua_createtable(L, 0, 1);
532 lua_pushcfunction(L, cls);
533 lua_setfield(L, -2, "__close");
534}
535
536
537LUALIB_API int luaopen_io (lua_State *L) {

Callers 1

luaopen_ioFunction · 0.85

Calls 2

lua_createtableFunction · 0.70
lua_setfieldFunction · 0.70

Tested by

no test coverage detected