MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / pusherrornotfound

Function pusherrornotfound

lib/lua/src/loadlib.c:462–469  ·  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

460** no file 'blublu.so'
461*/
462static void pusherrornotfound (lua_State *L, const char *path) {
463 luaL_Buffer b;
464 luaL_buffinit(L, &b);
465 luaL_addstring(&b, "no file '");
466 luaL_addgsub(&b, path, LUA_PATH_SEP, "'\n\tno file '");
467 luaL_addstring(&b, "'");
468 luaL_pushresult(&b);
469}
470
471
472static 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