blob: 51296c22262386e6c34006449d45db610ab35222 (
plain)
1
2
3
4
5
6
7
8
9
|
// Given a function pointer, return the code address.
#ifdef _CALL_AIX
// The function descriptor is actually multiple words,
// but we don't care about anything except the first.
# define UNWRAP_FUNCTION_DESCRIPTOR(X) (*(void **)(X))
#else
# define UNWRAP_FUNCTION_DESCRIPTOR(X) (X)
#endif
|