smartinstaller/common/macros.h
branchADM
changeset 14 343c622c9f65
equal deleted inserted replaced
13:8ed1157e9487 14:343c622c9f65
       
     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 
       
    21 #ifndef __MACROS_H__
       
    22 #define __MACROS_H__
       
    23 
       
    24 #ifndef DELETE_IF_NONNULL
       
    25 #define DELETE_IF_NONNULL(x) \
       
    26 	if (x)          \
       
    27 		{           \
       
    28 		delete x;  \
       
    29 		x = NULL;   \
       
    30 		}
       
    31 #endif
       
    32 
       
    33 #endif