MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / errfile

Function errfile

extlibs/lua/src/lauxlib.c:709–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707
708
709static 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
718static int skipBOM (LoadF *lf) {

Callers 1

luaL_loadfilexFunction · 0.85

Calls 1

lua_pushfstringFunction · 0.85

Tested by

no test coverage detected