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

Function errfile

deps/lua/src/lauxlib.c:543–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541
542
543static int errfile (lua_State *L, const char *what, int fnameindex) {
544 const char *serr = strerror(errno);
545 const char *filename = lua_tostring(L, fnameindex) + 1;
546 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
547 lua_remove(L, fnameindex);
548 return LUA_ERRFILE;
549}
550
551
552LUALIB_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