#include <nitro/os.h>
int OS_CalcFunctionCostLines( u32 size );
size | Buffer size |
The number of lines that can be reserved. 0 indicates that none can be reserved.
This obtains how many lines of function cost calculation information can be obtained for a buffer of a specified size.
size has the same meaning as the value that is specified as the buffer size in OS_InitFunctionCost()
. In addition to function call calculation information, a region for recording a buffer terminator, a current pointer, and the like also takes up space in the buffer. This function considers this type of information and obtains the number of lines that can be reserved given a specified buffer size.
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.
OS_InitFunctionCost, OS_CalcFunctionCostBufferSize
2004/05/18 Initial version.
CONFIDENTIAL