MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / errfile

Function errfile

src/Chain/libraries/glua/lauxlib.cpp:663–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661
662
663static int errfile(lua_State *L, const char *what, int fnameindex) {
664 const char *serr = strerror(errno);
665 const char *filename = lua_tostring(L, fnameindex) + 1;
666 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
667 global_glua_chain_api->throw_exception(L, THINKYOUNG_API_SIMPLE_ERROR, luaL_checkstring(L, -1));
668 lua_remove(L, fnameindex);
669 return LUA_ERRFILE;
670}
671
672
673static int skipBOM(LoadF *lf) {

Callers 2

luaL_loadfilexFunction · 0.85
lua_compilefile_preloadFunction · 0.85

Calls 2

lua_pushfstringFunction · 0.85
throw_exceptionMethod · 0.45

Tested by

no test coverage detected