mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 10:43:27 +00:00
added nodiscard
This commit is contained in:
@@ -117,6 +117,7 @@ namespace omath::rev_eng
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
[[nodiscard]]
|
||||||
static const void* resolve_pattern(const std::string_view module_name, const std::string_view pattern)
|
static const void* resolve_pattern(const std::string_view module_name, const std::string_view pattern)
|
||||||
{
|
{
|
||||||
const auto* base = get_module_base(module_name);
|
const auto* base = get_module_base(module_name);
|
||||||
@@ -133,6 +134,7 @@ namespace omath::rev_eng
|
|||||||
return reinterpret_cast<const void*>(*result);
|
return reinterpret_cast<const void*>(*result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[nodiscard]]
|
||||||
static const void* get_module_base(const std::string_view module_name)
|
static const void* get_module_base(const std::string_view module_name)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|||||||
Reference in New Issue
Block a user