| 707 | |
| 708 | |
| 709 | static int errfile (lua_State *L, const char *what, int fnameindex) { |
| 710 | const char *serr = strerror(errno); |
| 711 | const char *filename = lua_tostring(L, fnameindex) + 1; |
| 712 | lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr); |
| 713 | lua_remove(L, fnameindex); |
| 714 | return LUA_ERRFILE; |
| 715 | } |
| 716 | |
| 717 | |
| 718 | static int skipBOM (LoadF *lf) { |
no test coverage detected