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