MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / fileerror

Function fileerror

deps/lua/src/liolib.c:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48static void fileerror (lua_State *L, int arg, const char *filename) {
49 lua_pushfstring(L, "%s: %s", filename, strerror(errno));
50 luaL_argerror(L, arg, lua_tostring(L, -1));
51}
52
53
54#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