| 46 | |
| 47 | |
| 48 | static void fileerror (lua_State *L, int arg, const char *filename) { |
| 49 | lua_pushfstring(L, "%s: %s", filename, strerror(errno)); |
| 50 | luaL_argerror(L, arg, lua_tostring(L, -1)); |
| 51 | } |
| 52 | |
| 53 | |
| 54 | #define tofilep(L) ((FILE **)luaL_checkudata(L, 1, LUA_FILEHANDLE)) |
no test coverage detected