fix bug
This commit is contained in:
@@ -28,21 +28,21 @@ namespace basalt::presenter::dll_loader {
|
||||
~DllLoader();
|
||||
|
||||
private:
|
||||
void* GetFunctionPointer(const char* name);
|
||||
void* get_function_pointer(const char* name);
|
||||
|
||||
public:
|
||||
template<typename T>
|
||||
T* CreateInstance() {
|
||||
T* create_instance() {
|
||||
using Fct = T* (*) ();
|
||||
constexpr char EXPOSE_FUNC_NAME[] = "BSCreateInstance";
|
||||
auto fct = (Fct) GetFunctionPointer(EXPOSE_FUNC_NAME);
|
||||
auto fct = (Fct) get_function_pointer(EXPOSE_FUNC_NAME);
|
||||
return fct();
|
||||
}
|
||||
template<typename T>
|
||||
void DestroyInstance(T* instance) {
|
||||
void destroy_instance(T* instance) {
|
||||
using Fct = void (*)(T*);
|
||||
constexpr char EXPOSE_FUNC_NAME[] = "BSDestroyInstance";
|
||||
auto fct = (Fct) GetFunctionPointer(EXPOSE_FUNC_NAME);
|
||||
auto fct = (Fct) get_function_pointer(EXPOSE_FUNC_NAME);
|
||||
fct(instance);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user