| 767 | |
| 768 | |
| 769 | LUAMOD_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 |
nothing calls this directly
no test coverage detected