mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 06:03:27 +00:00
added overload
This commit is contained in:
@@ -90,6 +90,19 @@ namespace omath::rev_eng
|
|||||||
return call_method<ReturnType>(address, arg_list...);
|
return call_method<ReturnType>(address, arg_list...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class ReturnType>
|
||||||
|
ReturnType call_method(const std::string_view& module_name,const std::string_view& pattern, auto... arg_list)
|
||||||
|
{
|
||||||
|
static const auto* address = resolve_pattern(module_name, pattern);
|
||||||
|
return call_method<ReturnType>(address, arg_list...);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<class ReturnType>
|
||||||
|
ReturnType call_method(const std::string_view& module_name,const std::string_view& pattern, auto... arg_list) const
|
||||||
|
{
|
||||||
|
static const auto* address = resolve_pattern(module_name, pattern);
|
||||||
|
return call_method<ReturnType>(address, arg_list...);
|
||||||
|
}
|
||||||
template<std::size_t Id, class ReturnType>
|
template<std::size_t Id, class ReturnType>
|
||||||
ReturnType call_virtual_method(auto... arg_list)
|
ReturnType call_virtual_method(auto... arg_list)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user