Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32def.h
Link against:

__ASSERT_DEBUG

__ASSERT_DEBUG(c,p) (void)((c)||(p,0))

Support

Supported from 5.0

Description

Assert that a condition is true for debug builds only.

This macro is used as a C++ statement to assert the truth of some condition, and to take appropriate action if the condition is false. It is used in the same way as __ASSERT_ALWAYS, except that it is only defined only for debug builds.

The macro may be used to insert extra checks at various points in source code as desired; the code will only be generated in debug builds and not in release builds.

Parameters

c

a conditional expression which results in true or false.

p

a function which is called if the conditional expression c is false.

See also: