1 /*---------------------------------------------------------------------------*
2   Project:    Revolution SDK
3   File:       revodefs.h
4   Programmer: TOKUNAGA, Yasuhiro
5 
6   Copyright (C) 2005-2006 Nintendo.  All rights reserved.
7 
8   These coded instructions, statements, and computer programs contain
9   proprietary information of Nintendo of America Inc. and/or Nintendo
10   Company Ltd., and are protected by Federal copyright law.  They may
11   not be disclosed to third parties or copied or duplicated in any form,
12   in whole or in part, without the prior written consent of Nintendo.
13  *---------------------------------------------------------------------------*/
14 
15 #ifndef __REVODEFS_H__
16 #define __REVODEFS_H__
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define REVOLUTION_DEF_STR(X)      REVOLUTION_DEF_VAL(X)
23 #define REVOLUTION_DEF_VAL(X)      #X
24 #define REVOLUTION_DEF_CAT(X,Y)    X ## Y
25 #define REVOLUTION_LIB_CC          REVOLUTION_DEF_STR(__CWCC__) "_" REVOLUTION_DEF_STR(__CWBUILD__)
26 
27 #ifdef _DEBUG
28 #define REVOLUTION_LIB_VERSION(lib)    \
29     const char* __ ## lib ## Version = "<< RVL_SDK - " #lib " \tdebug build: " __DATE__ " " __TIME__ " (" REVOLUTION_LIB_CC ") >>"
30 #else
31 #define REVOLUTION_LIB_VERSION(lib)    \
32     const char* __ ## lib ## Version = "<< RVL_SDK - " #lib " \trelease build: " __DATE__ " " __TIME__ " (" REVOLUTION_LIB_CC ") >>"
33 #endif
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif  // __REVODEFS_H__
40