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