smartinstaller/common/macros.h
branchADM
changeset 48 364021cecc90
equal deleted inserted replaced
47:3f419852be07 48:364021cecc90
       
     1 /*
       
     2 * Copyright (c) 2009-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 *     Macros used in Bootstrap/ADM
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef __MACROS_H__
       
    21 #define __MACROS_H__
       
    22 
       
    23 #ifndef DELETE_IF_NONNULL
       
    24 #define DELETE_IF_NONNULL(x) \
       
    25 /*	if (x) */       \
       
    26 		{           \
       
    27 		delete x;  \
       
    28 		x = NULL;   \
       
    29 		}
       
    30 #endif
       
    31 
       
    32 #endif