#include <revolution/mem.h> BOOL MEMCheckExpHeap( MEMHeapHandle heap, u32 optFlag );
heap |
Expanded heap handle. |
optFlag |
Check options (explained below). |
Returns TRUE if no errors are found in the expanded heap. Otherwise returns FALSE.
This function checks whether the expanded heap is corrupted. Specifically, this function checks whether the management region for each memory block in the expanded heap is normal.
Specify the check option with the optFlag argument.
MEM_HEAP_ERROR_PRINT |
If an error is found in a heap, the error content is output using the OSReport() function. |
This function is for debugging. The final ROM version (FINALROM) library does not do anything and always returns TRUE.
03/01/2006 Initial version.