MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / fileerror

Function fileerror

third-party/lua-5.1.5/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.70
luaL_argerrorFunction · 0.70

Tested by

no test coverage detected