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