MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / errfile

Function errfile

lua/lauxlib.c:591–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589
590
591static int errfile (lua_State *L, const char *what, int fnameindex) {
592 const char *serr = strerror(errno);
593 const char *filename = lua_tostring(L, fnameindex) + 1;
594 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
595 lua_remove(L, fnameindex);
596 return LUA_ERRFILE;
597}
598
599
600LUALIB_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