mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
fix: fix MSVC build (perhaps we need to get CI to use MSVC to catch stuff like this?)
This commit is contained in:
@@ -98,7 +98,7 @@ namespace YimMenu
|
|||||||
template<typename R>
|
template<typename R>
|
||||||
inline R Module::GetExport(const std::string_view name) const
|
inline R Module::GetExport(const std::string_view name) const
|
||||||
{
|
{
|
||||||
auto result = GetExportImpl<R, typeof(name)>(name);
|
auto result = GetExportImpl<R, decltype(name)>(name);
|
||||||
if (result)
|
if (result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ namespace YimMenu
|
|||||||
template<typename R>
|
template<typename R>
|
||||||
inline R Module::GetExport(const int ordinal) const
|
inline R Module::GetExport(const int ordinal) const
|
||||||
{
|
{
|
||||||
auto result = GetExportImpl<R, typeof(ordinal)>(ordinal);
|
auto result = GetExportImpl<R, decltype(ordinal)>(ordinal);
|
||||||
if (result)
|
if (result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
@@ -119,12 +119,13 @@ namespace YimMenu
|
|||||||
|
|
||||||
inline bool Module::IsExported(const std::string_view symbolName) const
|
inline bool Module::IsExported(const std::string_view symbolName) const
|
||||||
{
|
{
|
||||||
return GetExportImpl<void*, typeof(symbolName)>(symbolName) != nullptr;
|
|
||||||
|
return GetExportImpl<void*, decltype(symbolName)>(symbolName) != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool Module::IsExported(const int ordinal) const
|
inline bool Module::IsExported(const int ordinal) const
|
||||||
{
|
{
|
||||||
return GetExportImpl<void*, typeof(ordinal)>(ordinal) != nullptr;
|
return GetExportImpl<void*, decltype(ordinal)>(ordinal) != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename R, Symbol T>
|
template<typename R, Symbol T>
|
||||||
|
|||||||
Reference in New Issue
Block a user