Some functions added

This commit is contained in:
Nekotekina 2015-08-01 04:46:42 +03:00
parent ce9cd13e42
commit 0b1e45b6b5
10 changed files with 93 additions and 12 deletions

View file

@ -116,8 +116,6 @@ namespace vm
{
AT m_addr;
using type = RT(T...);
AT addr() const
{
return m_addr;
@ -141,7 +139,7 @@ namespace vm
RT operator()(ARMv7Context& context, T... args) const;
// conversion to another function pointer
template<typename AT2> operator _ptr_base<type, AT2>() const
template<typename AT2> operator _ptr_base<RT(T...), AT2>() const
{
return{ VM_CAST(m_addr) };
}