#include <revolution/mtx.h> #define MTXFreeStack( sPtr ) \ ( OSFree( (void*)( ((MtxStackPtr)(sPtr))->stackBase ) ) )
| sPtr | The MtxStack structure from which stack memory will be freed.Note that this frees sPtr->stackBase; it has no effect on sPtr itself. |
|---|
None.
This macro is defined in mtx.h. MTXFreeStack frees the memory previously allocated to sPtr->stackBase by MTXAllocStack.
MTXFreeStack uses the OSFree routine to free matrix stack memory previously allocated to sPtr. It is defined as a macro to expose the memory-freeing routine in the mtx.h header file. This insulates mtx.lib from changes to the OS memory management routines. Changes to the OS deallocation routines require only a redefinition of the MTXFreeStack function and a recompile of mtx.h.
Mtx, MtxPtr, MtxStack, MtxStackPtr, MTXAllocStack, MTXInitStack, OSAlloc, OSFree
2006/03/01 Initial version.
CONFIDENTIAL