mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-11-25 15:32:05 -06:00
common: dynamic_library: Add ctor for existing handle.
This commit is contained in:
@@ -22,6 +22,8 @@ DynamicLibrary::DynamicLibrary(const char* filename) {
|
||||
void(Open(filename));
|
||||
}
|
||||
|
||||
DynamicLibrary::DynamicLibrary(void* handle_) : handle{handle_} {}
|
||||
|
||||
DynamicLibrary::DynamicLibrary(DynamicLibrary&& rhs) noexcept
|
||||
: handle{std::exchange(rhs.handle, nullptr)} {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user