Symbian
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

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



Location: e32std.h

__ASSERT_ALWAYS_NO_LEAVE

__ASSERT_ALWAYS_NO_LEAVE (_s) {                                                     \
    try {                                                  \
        TTrapHandler* ____t = User::MarkCleanupStack();     \
        _s;                                                 \
        User::UnMarkCleanupStack(____t);                    \
        }                                                   \
    catch (XLeaveException& )                          \
        {                                                   \
        User::PanicUnexpectedLeave();                       \
        }                                                   \
    catch (...)                                             \
        {                                                   \
        User::Invariant();                                  \
        }                                                   \
    }

Description

Macro to assert in all builds that code does not leave

Parameters

_s

C++ statements to be executed which should not leave

Terms and conditions of use of the material