| 400 | |
| 401 | |
| 402 | static int loader_C (lua_State *L) { |
| 403 | const char *funcname; |
| 404 | const char *name = luaL_checkstring(L, 1); |
| 405 | const char *filename = findfile(L, name, "cpath"); |
| 406 | if (filename == NULL) return 1; /* library not found in this path */ |
| 407 | funcname = mkfuncname(L, name); |
| 408 | if (ll_loadfunc(L, filename, funcname) != 0) |
| 409 | loaderror(L, filename); |
| 410 | return 1; /* library loaded successfully */ |
| 411 | } |
| 412 | |
| 413 | |
| 414 | static int loader_Croot (lua_State *L) { |
nothing calls this directly
no test coverage detected