1#ifndef UVW_LIB_INCLUDE_H
2#define UVW_LIB_INCLUDE_H
9#include "underlying_type.hpp"
21 explicit SharedLib(ConstructorAccess ca, std::shared_ptr<Loop> ref,
const std::string &filename)
noexcept;
29 explicit operator bool() const noexcept;
41 F *
sym(const std::
string &name) {
42 static_assert(std::is_function_v<F>);
44 auto err = uv_dlsym(get(), name.data(),
reinterpret_cast<void **
>(&func));
45 if(err) { func =
nullptr; }
53 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.