MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / errfile

Function errfile

3rd/lua-5.4.3/src/lauxlib.c:733–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731
732
733static int errfile (lua_State *L, const char *what, int fnameindex) {
734 const char *serr = strerror(errno);
735 const char *filename = lua_tostring(L, fnameindex) + 1;
736 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
737 lua_remove(L, fnameindex);
738 return LUA_ERRFILE;
739}
740
741
742static int skipBOM (LoadF *lf) {

Callers 1

luaL_loadfilexFunction · 0.85

Calls 1

lua_pushfstringFunction · 0.85

Tested by

no test coverage detected