MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / compat53_errfile

Function compat53_errfile

Libs/sol/sol.hpp:3389–3396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3387}
3388
3389static int compat53_errfile(lua_State* L, const char* what, int fnameindex) {
3390 char buf[512] = { 0 };
3391 const char* serr = compat53_strerror(errno, buf, sizeof(buf));
3392 const char* filename = lua_tostring(L, fnameindex) + 1;
3393 lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
3394 lua_remove(L, fnameindex);
3395 return LUA_ERRFILE;
3396}
3397
3398static int compat53_skipBOM(compat53_LoadF* lf) {
3399 const char* p = "\xEF\xBB\xBF"; /* UTF-8 BOM mark */

Callers 1

luaL_loadfilexFunction · 0.85

Calls 1

compat53_strerrorFunction · 0.85

Tested by

no test coverage detected