OSSetCurrentHeap

Syntax

#include <revolution/os.h>

OSHeapHandle OSSetCurrentHeap(OSHeapHandle heap);

Arguments

heap Handle to a heap that was returned from the OSCreateHeap function

Return Values

Previous heap handle.

Description

Although this function is provided for compatibility's sake, we recommend using the MEM library.

Sets the current heap to heap. All subsequent calls to the OSAlloc and OSFree functions will be performed on this heap until another call to OSSetCurrentHeap.

See Also

Memory Allocation Functions, OSAlloc, OSFree

Revision History

2006/03/01 Initial version.


CONFIDENTIAL