| 396 | |
| 397 | |
| 398 | static int checkload (lua_State *L, int stat, const char *filename) { |
| 399 | if (stat) { /* module loaded successfully? */ |
| 400 | lua_pushstring(L, filename); /* will be 2nd argument to module */ |
| 401 | return 2; /* return open function and file name */ |
| 402 | } |
| 403 | else |
| 404 | return luaL_error(L, "error loading module " LUA_QS |
| 405 | " from file " LUA_QS ":\n\t%s", |
| 406 | lua_tostring(L, 1), filename, lua_tostring(L, -1)); |
| 407 | } |
| 408 | |
| 409 | |
| 410 | static int searcher_Lua (lua_State *L) { |
no test coverage detected