MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / errfile

Function errfile

Source/Misc/lua/src/lua.c:10755–10761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10753
10754
10755static int errfile (lua_State *L, const char *what, int fnameindex) {
10756const char *serr = strerror(errno);
10757const char *filename = lua_tostring(L, fnameindex) + 1;
10758lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
10759lua_remove(L, fnameindex);
10760return LUA_ERRFILE;
10761}
10762
10763
10764LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) {

Callers 1

luaL_loadfileFunction · 0.85

Calls 2

lua_pushfstringFunction · 0.85
lua_removeFunction · 0.85

Tested by

no test coverage detected