1 /*---------------------------------------------------------------------------*
2   Project:  Revolution SDK Extensions
3   File:     rexdefs.h
4 
5   Copyright 2006 Nintendo.  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   $Log: rexdefs.h,v $
14   Revision 1.1  2006/09/13 01:24:48  terui
15   Initial upload
16 
17   $NoKeywords: $
18  *---------------------------------------------------------------------------*/
19 
20 #ifndef REVOLUTION_REXDEFS_H__
21 #define REVOLUTION_REXDEFS_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 /*===========================================================================*/
27 #ifdef RVL_OS
28 
29 #include <revolution/revodefs.h>
30 
31 #ifdef	NDEBUG
32 #define REX_UNOFFICIAL_FUNC_VERSION( _libname_ )						\
33 	const char* __ ## _libname_ ## UnofficialVersion = "<< RVL_SDK - "	\
34 				#_libname_ " \trelease build: " __DATE__ " " __TIME__	\
35 				" (" REVOLUTION_LIB_CC ") UNOFFICIAL >>"
36 #else
37 #define REX_UNOFFICIAL_FUNC_VERSION( _libname_ )						\
38 	const char* __ ## _libname_ ## UnofficialVersion = "<< RVL_SDK - "	\
39 				#_libname_ " \tdebug build: " __DATE__ " " __TIME__		\
40 				" (" REVOLUTION_LIB_CC ") UNOFFICIAL >>"
41 #endif
42 
43 #endif
44 /*===========================================================================*/
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif  /* REVOLUTION_REXDEFS_H__ */
49 
50 /*---------------------------------------------------------------------------*
51   End of file
52  *---------------------------------------------------------------------------*/
53 #if 0
54 #ifndef __REVODEFS_H__
55 #define __REVODEFS_H__
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 #define REVOLUTION_DEF_STR(X)      REVOLUTION_DEF_VAL(X)
62 #define REVOLUTION_DEF_VAL(X)      #X
63 #define REVOLUTION_DEF_CAT(X,Y)    X ## Y
64 #define REVOLUTION_LIB_CC          REVOLUTION_DEF_STR(__CWCC__) "_" REVOLUTION_DEF_STR(__CWBUILD__)
65 
66 #ifdef _DEBUG
67 #define REVOLUTION_LIB_VERSION(lib)    \
68     const char* __ ## lib ## Version = "<< RVL_SDK - " #lib " \tdebug build: " __DATE__ " " __TIME__ " (" REVOLUTION_LIB_CC ") >>"
69 #else
70 #define REVOLUTION_LIB_VERSION(lib)    \
71     const char* __ ## lib ## Version = "<< RVL_SDK - " #lib " \trelease build: " __DATE__ " " __TIME__ " (" REVOLUTION_LIB_CC ") >>"
72 #endif
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif  // __REVODEFS_H__
79 #endif
80