#include <cafe/mem.h>

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


memBlock Pointer to the memory block to check.
heap Expanded heap handle. A NULL value may 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. If errors were found, returns FALSE.


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

The check options can be specified with the optFlag argument.

MEM_HEAP_ERROR_PRINT If an error is found in the memory block, the error content is output using the OSReport function.

This function is used for debugging.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also


Revision History

2013/05/08 Automated cleanup pass.
2010/11/01 Initial version.