GetTrapAddressfunction is obsolete and is documented here only for the sake of completeness.
FUNCTION GetTrapAddress (trapNum: Integer): LongInt;
- Toolbox A-line instruction or a trap number. If you specify an A-line instruction, the function extracts the trap number for you.
GetTrapAddressfunction was used when both the Operating System trap addresses and Toolbox trap addresses were located in the same trap dispatch table. Today, any system software routine with the trap number
$57is drawn from the Operating System dispatch table; any other software routine is taken from the Toolbox dispatch table.
GetTrapAddressfunction is not supported under Power PC.
GetTrapAddressprocedure ignores the high-order bits in the
trapNumparameter; the procedure is not able to differentiate between Operating System routines and Toolbox routines. The
GetTrapAddressprocedure is not reliable on any computer today.