MCPcopy Create free account
hub / github.com/defold/defold / newfenv

Function newfenv

engine/lua/src/lua/liolib.c:531–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaopen_ioFunction · 0.85

Calls 2

lua_createtableFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected