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