MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / pusherrornotfound

Function pusherrornotfound

3rd/lua-5.4.3/src/loadlib.c:471–478  ·  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

469** no file 'blublu.so'
470*/
471static void pusherrornotfound (lua_State *L, const char *path) {
472 luaL_Buffer b;
473 luaL_buffinit(L, &b);
474 luaL_addstring(&b, "no file '");
475 luaL_addgsub(&b, path, LUA_PATH_SEP, "'\n\tno file '");
476 luaL_addstring(&b, "'");
477 luaL_pushresult(&b);
478}
479
480
481static const char *searchpath (lua_State *L, const char *name,

Callers 1

searchpathFunction · 0.85

Calls 4

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

Tested by

no test coverage detected