OS_CalcCallTraceBufferSize

Syntax

#include <nitro/os.h>

u32 OS_CalcCallTraceBufferSize( int lines );

Arguments

lines The number of lines you want to reserve in a buffer

Return Values

The required buffer size.

Description

This function obtains the buffer size that is required to reserve the number of lines specified for function call trace information.

The return value is the minimum buffer size required to reserve lines of function call trace information.

If this function is compiled for debugging, it will function properly. However, if compiled for the final ROM version (FINALROM) library, it will always return 0.

See Also

OS_InitCallTrace, OS_CalcCallTraceLines

Revision History

2004/04/22 Initial version.


CONFIDENTIAL