| 378 | |
| 379 | |
| 380 | static int loader_Lua (lua_State *L) { |
| 381 | const char *filename; |
| 382 | const char *name = luaL_checkstring(L, 1); |
| 383 | filename = findfile(L, name, "path"); |
| 384 | if (filename == NULL) return 1; /* library not found in this path */ |
| 385 | if (luaL_loadfile(L, filename) != 0) |
| 386 | loaderror(L, filename); |
| 387 | return 1; /* library loaded successfully */ |
| 388 | } |
| 389 | |
| 390 | |
| 391 | static const char *mkfuncname (lua_State *L, const char *modname) { |
nothing calls this directly
no test coverage detected