1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: verdefs.h 4 5 Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain proprietary 8 information of Nintendo and/or its licensed developers and are protected by 9 national and international copyright laws. They may not be disclosed to third 10 parties or copied or duplicated in any form, in whole or in part, without the 11 prior written consent of Nintendo. 12 13 The content herein is highly confidential and should be handled accordingly. 14 15 $Revision: 31311 $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef NW_VERDEFS_H_ 19 #define NW_VERDEFS_H_ 20 21 #include <nw/types.h> 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 28 #define NW_DEF_STR(X) NW_DEF_VAL(X) 29 #define NW_DEF_VAL(X) #X 30 #define NW_DEF_CAT(X,Y) X ## Y 31 #define NW_LIB_CC NW_DEF_STR(__CWCC__) "_" NW_DEF_STR(__CWBUILD__) 32 33 34 #ifdef NW_DEBUG 35 #define NW_LIB_VERSION(lib) \ 36 const char* NW_ ## lib ## _Version_ = "<< NW - " #lib " \tdebug build: " __DATE__ " " __TIME__ " (" NW_LIB_CC ") >>" 37 #endif 38 39 #ifdef NW_DEVELOPMENT 40 #define NW_LIB_VERSION(lib) \ 41 const char* NW_ ## lib ## _Version_ = "<< NW - " #lib " \tdevelopment build: " __DATE__ " " __TIME__ " (" NW_LIB_CC ") >>" 42 #endif 43 44 #ifdef NW_RELEASE 45 #define NW_LIB_VERSION(lib) \ 46 const char* NW_ ## lib ## _Version_ = "<< NW - " #lib " \trelease build: " __DATE__ " " __TIME__ " (" NW_LIB_CC ") >>" 47 #endif 48 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 55 /* NW_VERDEFS_H_ */ 56 #endif 57