mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 07:31:32 +00:00
10 lines
294 B
C
10 lines
294 B
C
// 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
|