| 33 | // resolve a symbol to a function pointer of the given type |
| 34 | template <typename FuncType> |
| 35 | bool resolve(FuncType& target, const char* name) const { |
| 36 | target = nullptr; |
| 37 | if (!handle_) return false; |
| 38 | |
| 39 | target = reinterpret_cast<FuncType>(resolveRaw(name)); |
| 40 | return target != nullptr; |
| 41 | } |
| 42 | |
| 43 | // resolve and call a function directly (throws on failure) |
| 44 | template <typename FuncType, typename... Args> |
no outgoing calls
no test coverage detected