sbsv2/raptor/test/smoke_suite/test_resources/inc/macrotests.h
changeset 13 c327db0664bb
equal deleted inserted replaced
12:5e7562f67577 13:c327db0664bb
       
     1 /*
       
     2 * Copyright (c) 2009 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 the License "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 *
       
    16 */
       
    17 /* Different platforms (e.g. tools2 and the rest) can use 
       
    18    this to test that their FLMs
       
    19    support the MACRO keyword and that they support
       
    20    complex macros with quotes and parentheses.
       
    21 
       
    22    Make your mmp include macrotest.mmh to declare the appropriate macros
       
    23 */
       
    24 
       
    25 
       
    26 #if !defined(MACRO_ADDED_FOR_TESTING)
       
    27 #error Expected MACRO "MACRO_ADDED_FOR_TESTING" from the MMP but it is not defined
       
    28 #endif
       
    29 
       
    30 #define MULTIPLYBY100(x) x##00
       
    31 
       
    32 #if COMPLEXMACRO != 100 
       
    33 #error Expected  MACRO "##COMPLEXMACRO=MULTUPLYBY100(1)" from the MMP but it is not defined
       
    34 #endif
       
    35