MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / newfenv

Function newfenv

lua/liolib.c:535–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533
534
535static void newfenv (lua_State *L, lua_CFunction cls) {
536 lua_createtable(L, 0, 1);
537 lua_pushcfunction(L, cls);
538 lua_setfield(L, -2, "__close");
539}
540
541
542LUALIB_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