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

Function errfile

third-party/lua-5.2.4/src/lauxlib.c:587–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585
586
587static int errfile (lua_State *L, const char *what, int fnameindex) {
588 const char *serr = strerror(errno);
589 const char *filename = lua_tostring(L, fnameindex) + 1;
590 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
591 lua_remove(L, fnameindex);
592 return LUA_ERRFILE;
593}
594
595
596static int skipBOM (LoadF *lf) {

Callers 1

luaL_loadfilexFunction · 0.70

Calls 2

lua_pushfstringFunction · 0.70
lua_removeFunction · 0.70

Tested by

no test coverage detected