| 84 | } FuncPointerUnion; |
| 85 | |
| 86 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { |
| 87 | assert(sizeof(void*) == sizeof(lua_CFunction)); |
| 88 | FuncPointerUnion fpu; |
| 89 | fpu.pointer = dlsym(lib, sym); |
| 90 | if (fpu.func == NULL) { |
| 91 | lua_pushstring(L, dlerror()); |
| 92 | } |
| 93 | return fpu.func; |
| 94 | } |
| 95 | |
| 96 | /* }====================================================== */ |
| 97 |
no test coverage detected