cbs/cbsui/inc/cbsuidebug.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *    Provides macros for testing.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef CBSUIDEBUG_H
       
    22 #define CBSUIDEBUG_H
       
    23 
       
    24 
       
    25 ////////////////////////////
       
    26 // MEMORY TEST MACRO     //
       
    27 
       
    28 
       
    29 #ifdef _DEBUG
       
    30 #define _CBSUI_DEBUG
       
    31 #endif // _DEBUG
       
    32 
       
    33 #ifdef _CBSUI_DEBUG
       
    34     #define _CBSUI_ASSERT(condition, function) \
       
    35             _ASSERT_DEBUG(condition, function)
       
    36     #define _CBSUI_ASSERT_E(condition, error) \
       
    37             _ASSERT_DEBUG(condition, CbsUiPanic(error) )
       
    38 #else
       
    39     #define _CBSUI_ASSERT(condition, function)
       
    40     #define _CBSUI_ASSERT_E(condition, error)
       
    41 #endif //_CBSUI_DEBUG
       
    42 
       
    43 
       
    44 #endif // CBSUIDEBUG_H
       
    45 
       
    46 // End of File