1#ifndef UVW_LIB_INCLUDE_H
2#define UVW_LIB_INCLUDE_H
22 explicit shared_lib(loop::token token, std::shared_ptr<loop> ref,
const std::string &filename)
noexcept;
30 explicit operator bool() const noexcept;
42 F *
sym(const std::
string &name) {
43 static_assert(std::is_function_v<F>);
45 auto err = uv_dlsym(
raw(), name.data(),
reinterpret_cast<void **
>(&func));
46 if(err) { func =
nullptr; }
54 const char *
error() const noexcept;
const char * error() const noexcept
Returns the last error message, if any.
F * sym(const std::string &name)
Retrieves a data pointer from a dynamic library.
Wrapper class for underlying types.
const uv_lib_t * raw() const noexcept
Gets the underlying raw data structure.