MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / errfile

Function errfile

other_src/lua/src/lauxlib.cpp:568–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566
567
568static int errfile (lua_State *L, const char *what, int fnameindex) {
569 const char *serr = strerror(errno);
570 const char *filename = lua_tostring(L, fnameindex) + 1;
571 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
572 lua_remove(L, fnameindex);
573 return LUA_ERRFILE;
574}
575
576
577LUALIB_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