MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaopen_io

Function luaopen_io

extlibs/lua/src/liolib.c:804–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802
803
804LUAMOD_API int luaopen_io (lua_State *L) {
805 luaL_newlib(L, iolib); /* new module */
806 createmeta(L);
807 /* create (and set) default files */
808 createstdfile(L, stdin, IO_INPUT, "stdin");
809 createstdfile(L, stdout, IO_OUTPUT, "stdout");
810 createstdfile(L, stderr, NULL, "stderr");
811 return 1;
812}
813

Callers

nothing calls this directly

Calls 2

createmetaFunction · 0.85
createstdfileFunction · 0.85

Tested by

no test coverage detected