| 655 | |
| 656 | |
| 657 | LUAMOD_API int luaopen_io (lua_State *L) { |
| 658 | luaL_newlib(L, iolib); /* new module */ |
| 659 | createmeta(L); |
| 660 | /* create (and set) default files */ |
| 661 | createstdfile(L, stdin, IO_INPUT, "stdin"); |
| 662 | createstdfile(L, stdout, IO_OUTPUT, "stdout"); |
| 663 | createstdfile(L, stderr, NULL, "stderr"); |
| 664 | return 1; |
| 665 | } |
| 666 |
nothing calls this directly
no test coverage detected