| 802 | |
| 803 | |
| 804 | LUAMOD_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 |
nothing calls this directly
no test coverage detected