| 10 | #endif |
| 11 | |
| 12 | void *dylib::find_lib(const char *name) |
| 13 | { |
| 14 | #if OS_WIN |
| 15 | return (void *)GetModuleHandleA(name); |
| 16 | #elif OS_MAC |
| 17 | return dlopen(name, RTLD_NOLOAD | RTLD_LAZY); |
| 18 | #endif |
| 19 | } |
| 20 | |
| 21 | void *dylib::find_proc(void *lib, const char *proc) |
| 22 | { |
nothing calls this directly
no outgoing calls
no test coverage detected