/*---------------------------------------------------------------------------* Project: NintendoWare File: macros.h Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Revision: 13332 $ *---------------------------------------------------------------------------*/ #ifndef NW_CONFIG_MACROS_H_ #define NW_CONFIG_MACROS_H_ #include #define NW_MACRO_STRING_I_(text) #text #if defined( NW_COMPILER_CWCC ) #define NW_MACRO_STRING_(text) NW_MACRO_STRING_O_((text)) #define NW_MACRO_STRING_O_(params) NW_MACRO_STRING_I_ ## params #define NW_MACRO_CAT_(a, b) NW_MACRO_CAT_O_((a, b)) #define NW_MACRO_CAT_O_(params) NW_MACRO_CAT_I_ ## params #define NW_MACRO_CAT_I_(a, b) a ## b #elif defined( NW_COMPILER_MSVC ) #define NW_MACRO_STRING_(text) NW_MACRO_STRING_O_((text)) #define NW_MACRO_STRING_O_(params) NW_MACRO_STRING_I_ params #define NW_MACRO_CAT_(a, b) NW_MACRO_CAT_I_(a, b) #define NW_MACRO_CAT_I_(a, b) NW_MACRO_CAT_II_(a ## b) #define NW_MACRO_CAT_II_(text) text #else // RVCT もこれでOK #define NW_MACRO_STRING_(text) NW_MACRO_STRING_I_(text) #define NW_MACRO_CAT_I_(a, b) a ## b #define NW_MACRO_CAT_(a, b) NW_MACRO_CAT_I_(a, b) #endif #define NW_ADAPTIVE_HEADER(prefix, target) #define NW_ADAPTIVE_HEADER_LOCAL(prefix, target) NW_MACRO_STRING_(NW_MACRO_CAT_(prefix, target)) #endif // NW_CONFIG_MACROS_H_