MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / errfile

Function errfile

third-party/lua-5.3.5/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.70

Calls 2

lua_pushfstringFunction · 0.70
lua_removeFunction · 0.50

Tested by

no test coverage detected