Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32def.h
Link against:

__KHEAP_CHECK

__KHEAP_CHECK(aCount) User::__DbgMarkCheck(RHeap::EKernel,EFalse,aCount,TPtrC8((TText8*)__FILE__),__LINE__)

Support

Supported from 5.0

Description

Checks that the number of allocated cells at the current nested level of the Kernel heap is the same as the specified value. This macro is defined only for debug builds. Checking the Kernel heap is only useful when developing Kernel side code such as device drivers and media drivers.

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.

Parameters

aCount

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

See also: