| 368 | } |
| 369 | |
| 370 | static int lj_cf_package_loader_lua(lua_State *L) |
| 371 | { |
| 372 | const char *filename; |
| 373 | const char *name = luaL_checkstring(L, 1); |
| 374 | filename = findfile(L, name, "path"); |
| 375 | if (filename == NULL) return 1; /* library not found in this path */ |
| 376 | if (luaL_loadfile(L, filename) != 0) |
| 377 | loaderror(L, filename); |
| 378 | return 1; /* library loaded successfully */ |
| 379 | } |
| 380 | |
| 381 | static int lj_cf_package_loader_c(lua_State *L) |
| 382 | { |
nothing calls this directly
no test coverage detected