MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / pusherrornotfound

Function pusherrornotfound

extlibs/lua/src/loadlib.c:464–471  ·  view source on GitHub ↗

** Given a path such as ";blabla.so;blublu.so", pushes the string ** ** no file 'blabla.so' ** no file 'blublu.so' */

Source from the content-addressed store, hash-verified

462** no file 'blublu.so'
463*/
464static void pusherrornotfound (lua_State *L, const char *path) {
465 luaL_Buffer b;
466 luaL_buffinit(L, &b);
467 luaL_addstring(&b, "no file '");
468 luaL_addgsub(&b, path, LUA_PATH_SEP, "'\n\tno file '");
469 luaL_addstring(&b, "'");
470 luaL_pushresult(&b);
471}
472
473
474static const char *searchpath (lua_State *L, const char *name,

Callers 1

searchpathFunction · 0.85

Calls 4

luaL_addstringFunction · 0.85
luaL_addgsubFunction · 0.85
luaL_buffinitFunction · 0.70
luaL_pushresultFunction · 0.70

Tested by

no test coverage detected