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, std::string filename) noexcept;
32 explicit operator bool()
const noexcept;
44 F *
sym(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;
70 #endif // UVW_LIB_INCLUDE_H