descriptor.h 294 B

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