You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,7 +45,7 @@ class NBL_API DynamicLibraryFunctionPointer
47
45
if (p)
48
46
return p(std::forward<T>(args)...);
49
47
assert(error);
50
-
return error(name);
48
+
return error(name.value);
51
49
}*/
52
50
53
51
template<typename... T>
@@ -56,7 +54,7 @@ class NBL_API DynamicLibraryFunctionPointer
56
54
if (p)
57
55
returnp(std::forward<T>(args)...);
58
56
elseif (error)
59
-
error(name);
57
+
error(name.value);
60
58
ifconstexpr (!std::is_void_v<result_type>)
61
59
{
62
60
return result_type{};
@@ -83,14 +81,10 @@ class NBL_API DynamicLibraryFunctionPointer
83
81
84
82
protected:
85
83
FuncT* p;
86
-
87
-
const char* name = UniqueStringType::value;
88
84
};
89
85
90
86
}
91
87
92
88
#defineNBL_SYSTEM_DECLARE_DYNLIB_FUNCPTR(FUNC_NAME) nbl::system::DynamicLibraryFunctionPointer<decltype(FUNC_NAME),NBL_CORE_UNIQUE_STRING_LITERAL_TYPE(#FUNC_NAME)> p ## FUNC_NAME;
0 commit comments