MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaopen_io

Function luaopen_io

depends/lua/src/liolib.c:769–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767
768
769LUAMOD_API int luaopen_io (lua_State *L) {
770 luaL_newlib(L, iolib); /* new module */
771 createmeta(L);
772 /* create (and set) default files */
773 createstdfile(L, stdin, IO_INPUT, "stdin");
774 createstdfile(L, stdout, IO_OUTPUT, "stdout");
775 createstdfile(L, stderr, NULL, "stderr");
776 return 1;
777}
778

Callers

nothing calls this directly

Calls 2

createmetaFunction · 0.85
createstdfileFunction · 0.85

Tested by

no test coverage detected