| 181 | |
| 182 | |
| 183 | static int io_tmpfile (lua_State *L) { |
| 184 | #if defined(LUA_NO_TMPFILE) // DEFOLD |
| 185 | return 0; |
| 186 | #else |
| 187 | FILE **pf = newfile(L); |
| 188 | *pf = tmpfile(); |
| 189 | return (*pf == NULL) ? pushresult(L, 0, NULL) : 1; |
| 190 | #endif |
| 191 | } |
| 192 | |
| 193 | |
| 194 | static FILE *getiofile (lua_State *L, int findex) { |
nothing calls this directly
no test coverage detected