| 13146 | |
| 13147 | |
| 13148 | static int loader_Lua (lua_State *L) { |
| 13149 | const char *filename; |
| 13150 | const char *name = luaL_checkstring(L, 1); |
| 13151 | filename = findfile(L, name, "path"); |
| 13152 | if (filename == NULL) return 1; /* library not found in this path */ |
| 13153 | if (luaL_loadfile(L, filename) != 0) |
| 13154 | loaderror(L, filename); |
| 13155 | return 1; /* library loaded successfully */ |
| 13156 | } |
| 13157 | |
| 13158 | |
| 13159 | static const char *mkfuncname (lua_State *L, const char *modname) { |
nothing calls this directly
no test coverage detected