| 10753 | |
| 10754 | |
| 10755 | static int errfile (lua_State *L, const char *what, int fnameindex) { |
| 10756 | const char *serr = strerror(errno); |
| 10757 | const char *filename = lua_tostring(L, fnameindex) + 1; |
| 10758 | lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr); |
| 10759 | lua_remove(L, fnameindex); |
| 10760 | return LUA_ERRFILE; |
| 10761 | } |
| 10762 | |
| 10763 | |
| 10764 | LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) { |
no test coverage detected