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

Function errfile

third-party/lua-5.1.5/src/lauxlib.c:543–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541
542
543static int errfile (lua_State *L, const char *what, int fnameindex) {
544 const char *serr = strerror(errno);
545 const char *filename = lua_tostring(L, fnameindex) + 1;
546 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
547 lua_remove(L, fnameindex);
548 return LUA_ERRFILE;
549}
550
551
552LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) {

Callers 1

luaL_loadfileFunction · 0.70

Calls 2

lua_pushfstringFunction · 0.70
lua_removeFunction · 0.70

Tested by

no test coverage detected