Elfspy/Function.h

23 lines
294 B
C
Raw Normal View History

2016-09-16 17:45:35 +02:00
#ifndef ELFSPY_FUNCTION_H
#define ELFSPY_FUNCTION_H
namespace spy
{
/**
* @namespace spy
* @union Function
* Conversion helper from function to address
*/
template <typename R, typename... Args>
union Function
{
R (*address_)(Args...);
void* pointer_;
};
} // namespace spy
#endif