| 532 | |
| 533 | |
| 534 | static int checkload (lua_State *L, int stat, const char *filename) { |
| 535 | if (l_likely(stat)) { /* module loaded successfully? */ |
| 536 | lua_pushstring(L, filename); /* will be 2nd argument to module */ |
| 537 | return 2; /* return open function and file name */ |
| 538 | } |
| 539 | else |
| 540 | return luaL_error(L, "error loading module '%s' from file '%s':\n\t%s", |
| 541 | lua_tostring(L, 1), filename, lua_tostring(L, -1)); |
| 542 | } |
| 543 | |
| 544 | |
| 545 | static int searcher_Lua (lua_State *L) { |
no test coverage detected