| 578 | |
| 579 | |
| 580 | static int searcher_C (lua_State *L) { |
| 581 | const char *name = luaL_checkstring(L, 1); |
| 582 | const char *filename = findfile(L, name, "cpath", LUA_CSUBSEP); |
| 583 | if (filename == NULL) return 1; /* module not found in this path */ |
| 584 | return checkload(L, (loadfunc(L, filename, name) == 0), filename); |
| 585 | } |
| 586 | |
| 587 | |
| 588 | static int searcher_Croot (lua_State *L) { |