Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 2 - Memory Manager / Memory Manager Reference
Memory Manager Routines / Accessing Heap Zones


GetZone

To find which zone is current, use the GetZone function.

FUNCTION GetZone: THz;
DESCRIPTION
The GetZone function returns a pointer to the current heap zone.

ASSEMBLY-LANGUAGE INFORMATION
The registers on exit for GetZone are
Registers on exit
A0Pointer to current heap zone
D0Result code

The global variable TheZone contains a pointer to the current heap zone.

RESULT CODES
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996