35 template <
typename... Args>
37 static void raise(Args&&... args)
65 void attach(lt_dlhandle h);
69 T
sym(
const std::string& s)
72 if (
auto res = lt_dlsym(handle, s.c_str()))
73 return reinterpret_cast<T
>(
res);
75 raise(
"failed to dlsym ", s);
ATTRIBUTE_NORETURN void raise(Args &&... args)
Raise a runtime_error with the concatenation of args as message.
xlt_advise & global(bool global)
lt_dlhandle handle
The handle.
T sym(const std::string &s)
Wrapper around lt_dlsym that exits on failures.
lt_dlhandle dlopen_(const file_library::path &s) const
Does not use the search path. Can return 0.
const file_library & path() const noexcept
boost::filesystem::path path
xlt_handle xlt_openext(const std::string &s, bool global)
Wrapper around lt_dlopenext.
Manage sets of inclusion paths.
xlt_handle open(const std::string &s)
xlt_advise & verbose(int v)
Whether to report dlopen attempts.