1 #ifndef UVW_LIB_INCLUDE_H
2 #define UVW_LIB_INCLUDE_H
10 #include "underlying_type.hpp"
24 explicit SharedLib(ConstructorAccess ca, std::shared_ptr<Loop> ref,
const std::string &filename) noexcept;
32 explicit operator bool() const noexcept;
44 F *
sym(const std::
string &name) {
45 static_assert(std::is_function_v<F>);
47 auto err = uv_dlsym(get(), name.data(),
reinterpret_cast<void**
>(&func));
48 if(err) { func =
nullptr; }
56 const char *
error() const noexcept;
F * sym(const std::string &name)
Retrieves a data pointer from a dynamic library.
const char * error() const noexcept
Returns the last error message, if any.
Wrapper class for underlying types.