MEMCheckForMBlockExpHeap

C Specification

#include <revolution/mem.h>

BOOL MEMCheckForMBlockExpHeap(
const   void*     		memBlock ,
		MEMHeapHandle   heap,
		u32             optFlag );

Arguments

memBlock Pointer to the memory block to check.
heap Expanded heap handle. NULL can also be specified. If NULL is specified, a rough check of the memory block address range and size is performed.
optFlag Check options (explained below).

Return Values

Returns TRUE if no errors are found in the expanded heap memory block. Otherwise returns FALSE.

Description

This function checks whether a memory block in the expanded heap is corrupted. Specifically, this function checks whether the management region for a memory block in the expanded heap is normal.

Specify the check option with the optFlag argument.

MEM_HEAP_ERROR_PRINT IF a memory block error is found, the error content is output with the OSReport function.

This function is for debugging. The final ROM version (FINALROM) library does not do anything and always returns TRUE.

See Also

MEMCheckExpHeap

Revision History

03/01/2006 Initial version.