| 487 | |
| 488 | |
| 489 | static int checkload (lua_State *L, int stat, const char *filename) { |
| 490 | if (stat) { /* module loaded successfully? */ |
| 491 | lua_pushstring(L, filename); /* will be 2nd argument to module */ |
| 492 | return 2; /* return open function and file name */ |
| 493 | } |
| 494 | else |
| 495 | return luaL_error(L, "error loading module '%s' from file '%s':\n\t%s", |
| 496 | lua_tostring(L, 1), filename, lua_tostring(L, -1)); |
| 497 | } |
| 498 | |
| 499 | |
| 500 | static int searcher_Lua (lua_State *L) { |
no test coverage detected