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

Function fileerror

Source/Misc/lua/src/lua.c:11962–11965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11960
11961
11962static void fileerror (lua_State *L, int arg, const char *filename) {
11963lua_pushfstring(L, "%s: %s", filename, strerror(errno));
11964luaL_argerror(L, arg, lua_tostring(L, -1));
11965}
11966
11967
11968#define tofilep(L) ((FILE **)luaL_checkudata(L, 1, LUA_FILEHANDLE))

Callers 2

g_iofileFunction · 0.85
io_linesFunction · 0.85

Calls 2

lua_pushfstringFunction · 0.85
luaL_argerrorFunction · 0.85

Tested by

no test coverage detected