| 393 | |
| 394 | |
| 395 | static int loader_Lua (lua_State *L) { |
| 396 | const char *filename; |
| 397 | const char *name = luaL_checkstring(L, 1); |
| 398 | filename = findfile(L, name, "path"); |
| 399 | if (filename == NULL) return 1; /* library not found in this path */ |
| 400 | if (luaL_loadfile(L, filename) != 0) |
| 401 | loaderror(L, filename); |
| 402 | return 1; /* library loaded successfully */ |
| 403 | } |
| 404 | |
| 405 | |
| 406 | static const char *mkfuncname (lua_State *L, const char *modname) { |
nothing calls this directly
no test coverage detected