| 11960 | |
| 11961 | |
| 11962 | static void fileerror (lua_State *L, int arg, const char *filename) { |
| 11963 | lua_pushfstring(L, "%s: %s", filename, strerror(errno)); |
| 11964 | luaL_argerror(L, arg, lua_tostring(L, -1)); |
| 11965 | } |
| 11966 | |
| 11967 | |
| 11968 | #define tofilep(L) ((FILE **)luaL_checkudata(L, 1, LUA_FILEHANDLE)) |
no test coverage detected