MCPcopy Create free account
hub / github.com/DFHack/dfhack / errfile

Function errfile

depends/lua/src/lauxlib.c:660–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658
659
660static int errfile (lua_State *L, const char *what, int fnameindex) {
661 const char *serr = strerror(errno);
662 const char *filename = lua_tostring(L, fnameindex) + 1;
663 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
664 lua_remove(L, fnameindex);
665 return LUA_ERRFILE;
666}
667
668
669static int skipBOM (LoadF *lf) {

Callers 1

luaL_loadfilexFunction · 0.85

Calls 1

lua_pushfstringFunction · 0.85

Tested by

no test coverage detected