| 300 | |
| 301 | |
| 302 | static int io_tmpfile (lua_State *L) { |
| 303 | LStream *p = newfile(L); |
| 304 | errno = 0; |
| 305 | p->f = tmpfile(); |
| 306 | return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1; |
| 307 | } |
| 308 | |
| 309 | |
| 310 | static FILE *getiofile (lua_State *L, const char *findex) { |
nothing calls this directly
no test coverage detected