| 159 | |
| 160 | |
| 161 | static void *lsys_load(lua_State *L, const char *path, int seeglb) { |
| 162 | void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL)); |
| 163 | if (lib == nullptr) lua_pushstring(L, dlerror()); |
| 164 | return lib; |
| 165 | } |
| 166 | |
| 167 | |
| 168 | static lua_CFunction lsys_sym(lua_State *L, void *lib, const char *sym) { |
no test coverage detected