** Given a path such as ";blabla.so;blublu.so", pushes the string ** ** no file 'blabla.so' ** no file 'blublu.so' */
| 460 | ** no file 'blublu.so' |
| 461 | */ |
| 462 | static 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 | |
| 472 | static const char *searchpath (lua_State *L, const char *name, |
no test coverage detected