mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-19 03:05:15 +00:00
7 lines
299 B
C
7 lines
299 B
C
// Given a function pointer, return the code address.
|
|
// If the plabel bit is set, mask it off and return the code from the
|
|
// first word of the function descriptor. Otherwise, the function
|
|
// pointer is the code address.
|
|
|
|
#define UNWRAP_FUNCTION_DESCRIPTOR(X) *(void **)((unsigned long) (X) + 16)
|