MEMSetFillValForHeap

Syntax

#include <cafe/mem.h>

u32 MEMSetFillValForHeap( int type, u32 val );

Parameters

type Type of process that sets the value (see Description section below).
val 32-bit value to set.

Return Values

Returns the value set for filling memory before processing for the specified type.

Description

This function gets a 32-bit value in memory at the time of heap creation and memory block allocation/deallocation. Different values can be set at the time of heap creation and memory block allocation/deallocation. Specify the type of value to set with the type argument. The type argument takes one of the following values.

MEM_HEAP_FILL_NOUSE At heap creation.
MEM_HEAP_FILL_ALLOC At memory block allocation.
MEM_HEAP_FILL_FREE At memory block deallocation.

This function is for debugging and does not function in the final ROM version library (FINALROM).

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMGetFillValForHeap
MEMCreateExpHeapEx
MEMCreateFrmHeapEx
MEMCreateUnitHeapEx

Revision History

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


CONFIDENTIAL