| 132 | |
| 133 | |
| 134 | static void *ll_load (lua_State *L, const char *path, int seeglb) { |
| 135 | void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL)); |
| 136 | if (lib == NULL) lua_pushstring(L, dlerror()); |
| 137 | return lib; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { |
no test coverage detected