19 lines
326 B
C++
19 lines
326 B
C++
#pragma once
|
|
#include <filesystem>
|
|
|
|
class DL {
|
|
void* m_handle;
|
|
public:
|
|
DL(const DL& other) = delete;
|
|
DL(DL&& other) noexcept;
|
|
DL& operator=(const DL& other) = delete;
|
|
DL& operator=(DL&& other) noexcept;
|
|
|
|
DL(const std::filesystem::path& dl);
|
|
~DL();
|
|
|
|
void* resolve(const char* symbol) const;
|
|
|
|
operator bool() const;
|
|
};
|