MEMSetFillValForHeap

C Specification

#include <revolution/mem.h>

u32 MEMSetFillValForHeap( int type, u32 val );

Arguments

type Type of process that sets the value (see Description 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 for each value at the time of heap creation and memory block allocation/deallocation. Specify the type 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 freeing.

This function is for debugging. Doesn't function in the final ROM version library (FINALROM).

See Also

MEMGetFillValForHeap, MEMCreateExpHeapEx, MEMCreateFrmHeapEx, MEMCreateUnitHeapEx

Revision History

03/01/2006 Initial version.