Symbian
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



Location: e32def.h

__UHEAP_CHECK

__UHEAP_CHECK (aCount)

Description

Checks that the number of allocated cells at the current nested level on the current thread's heap is the same as the specified value.

This macro is defined only for debug builds.

The macro also takes the name of the file containing this source code statement and the line number of this source code statement; they are displayed as part of the panic category, if the checks fail.

The macro assumes that:

1. the heap being checked is a user heap

2. checking is being done for the number of allocated cells at the current nested level; i.e. that aCountAll is set to false

3. the line number is the line number of this source code statement.

4. the file name is the full path name of the file containing this source statement

Parameters

aCount

The number of heap cells expected to be allocated at the current nest level.

See also:

Terms and conditions of use of the material