CTR-Pia
5.4.3
Game Communication Engine
メインページ
ネームスペース一覧
クラス構成
クラス索引
関連ページ
Result 検索
全て
クラス
ネームスペース
関数
変数
型定義
列挙型
列挙型の値
ページ
pia_Settings.h
1
/*--------------------------------------------------------------------------------*
2
Copyright (C)Nintendo All rights reserved.
3
4
These coded instructions, statements, and computer programs contain proprietary
5
information of Nintendo and/or its licensed developers and are protected by
6
national and international copyright laws. They may not be disclosed to third
7
parties or copied or duplicated in any form, in whole or in part, without the
8
prior written consent of Nintendo.
9
10
The content herein is highly confidential and should be handled accordingly.
11
*--------------------------------------------------------------------------------*/
12
13
14
#pragma once
15
16
17
#define NN_PIA_PLATFORM_WIN (1)
18
#define NN_PIA_PLATFORM_CTR (2)
19
#define NN_PIA_PLATFORM_CAFE (3)
20
#define NN_PIA_PLATFORM_NINTENDOSDK (4)
21
#define NN_PIA_PLATFORM_A (5)
22
#define NN_PIA_PLATFORM_B (6)
23
24
#define NN_PIA_BUILD_DEBUG (1)
25
#define NN_PIA_BUILD_DEVELOP (2)
26
#define NN_PIA_BUILD_RELEASE (3)
27
28
#if defined(NN_NINTENDO_SDK)
29
// ※_WIN32判定の前にNN_NINTENDO_SDK判定すること
30
#define NN_PIA_PLATFORM NN_PIA_PLATFORM_NINTENDOSDK
31
32
#if defined(NN_SDK_BUILD_DEBUG)
33
#define NN_PIA_BUILD NN_PIA_BUILD_DEBUG
34
#elif defined(NN_SDK_BUILD_DEVELOP)
35
#define NN_PIA_BUILD NN_PIA_BUILD_DEVELOP
36
#elif defined(NN_SDK_BUILD_RELEASE)
37
#define NN_PIA_BUILD NN_PIA_BUILD_RELEASE
38
#else
39
#error "PIA_BUILD_TARGET_XXX is not defined."
40
#endif
41
42
// NN_PIA_NINTENDOSDKのときの更なる分岐マクロ
43
#if defined(_WIN32)
44
#define NN_PIA_NINTENDOSDK_WIN 1
45
#define NN_PIA_NINTENDOSDK_NX 0
46
#else
47
#define NN_PIA_NINTENDOSDK_WIN 0
48
#define NN_PIA_NINTENDOSDK_NX 1
49
#endif
50
51
#elif defined(NN_PLATFORM_CTR)
52
53
#define NN_PIA_PLATFORM NN_PIA_PLATFORM_CTR
54
55
#if defined(NN_BUILD_NOOPT)
56
#define NN_PIA_BUILD NN_PIA_BUILD_DEBUG
57
#elif defined(NN_BUILD_VERBOSE)
58
#define NN_PIA_BUILD NN_PIA_BUILD_DEVELOP
59
#else
60
#define NN_PIA_BUILD NN_PIA_BUILD_RELEASE
61
#endif
62
63
#elif defined(PLATFORM) && (PLATFORM == CAFE)
64
65
#define NN_PIA_PLATFORM NN_PIA_PLATFORM_CAFE
66
67
//n1769 PIA_BUILD_TARGET_* は、
68
//ビルドシステムの commondefs.mk によって定義されます。
69
#if defined(PIA_BUILD_TARGET_DEBUG)
70
#define NN_PIA_BUILD NN_PIA_BUILD_DEBUG
71
#elif defined(PIA_BUILD_TARGET_DEVELOP)
72
#define NN_PIA_BUILD NN_PIA_BUILD_DEVELOP
73
#elif defined(PIA_BUILD_TARGET_RELEASE)
74
#define NN_PIA_BUILD NN_PIA_BUILD_RELEASE
75
#else
76
#error "PIA_BUILD_TARGET_XXX is not defined."
77
#endif
78
79
#elif defined(_WIN32)
80
// CTR-VSIが_WIN32マクロを勘違いしてインテリセンスに反映するので
81
// WINプラットフォーム判定はCTR判定のあとに書くこと
82
#define NN_PIA_PLATFORM NN_PIA_PLATFORM_WIN
83
84
#if defined(PIA_BUILD_TARGET_DEBUG)
85
#define NN_PIA_BUILD NN_PIA_BUILD_DEBUG
86
#elif defined(PIA_BUILD_TARGET_DEVELOP)
87
#define NN_PIA_BUILD NN_PIA_BUILD_DEVELOP
88
#elif defined(PIA_BUILD_TARGET_RELEASE)
89
#define NN_PIA_BUILD NN_PIA_BUILD_RELEASE
90
#else
91
#error "PIA_BUILD_TARGET_XXX is not defined."
92
#endif
93
94
#elif defined(ANDROID)
95
96
#define NN_PIA_PLATFORM NN_PIA_PLATFORM_A
97
#if defined(PIA_BUILD_TARGET_DEBUG)
98
#define NN_PIA_BUILD NN_PIA_BUILD_DEBUG
99
#elif defined(PIA_BUILD_TARGET_DEVELOP)
100
#define NN_PIA_BUILD NN_PIA_BUILD_DEVELOP
101
#elif defined(PIA_BUILD_TARGET_RELEASE)
102
#define NN_PIA_BUILD NN_PIA_BUILD_RELEASE
103
#else
104
#error "PIA_BUILD_TARGET_XXX is not defined."
105
#endif
106
107
#elif defined(__APPLE__)
108
109
#define NN_PIA_PLATFORM NN_PIA_PLATFORM_B
110
#if defined(PIA_BUILD_TARGET_DEBUG)
111
#define NN_PIA_BUILD NN_PIA_BUILD_DEBUG
112
#elif defined(PIA_BUILD_TARGET_DEVELOP) || defined(UE_BUILD_DEVELOPMENT)
113
#define NN_PIA_BUILD NN_PIA_BUILD_DEVELOP
114
#elif defined(PIA_BUILD_TARGET_RELEASE)
115
#define NN_PIA_BUILD NN_PIA_BUILD_RELEASE
116
#else
117
#error "PIA_BUILD_TARGET_XXX is not defined."
118
#endif
119
120
#else
121
#error "This platform is not supported."
122
#endif
123
124
125
#define NN_PIA_CTR (NN_PIA_PLATFORM == NN_PIA_PLATFORM_CTR)
126
#define NN_PIA_WIN (NN_PIA_PLATFORM == NN_PIA_PLATFORM_WIN)
127
#define NN_PIA_CAFE (NN_PIA_PLATFORM == NN_PIA_PLATFORM_CAFE)
128
#define NN_PIA_NINTENDOSDK (NN_PIA_PLATFORM == NN_PIA_PLATFORM_NINTENDOSDK)
129
#define NN_PIA_A (NN_PIA_PLATFORM == NN_PIA_PLATFORM_A)
130
#define NN_PIA_B (NN_PIA_PLATFORM == NN_PIA_PLATFORM_B)
131
#if !NN_PIA_NINTENDOSDK
132
#define NN_PIA_NINTENDOSDK_WIN 0
133
#define NN_PIA_NINTENDOSDK_NX 0
134
#endif
135
136
#define NN_PIA_DEBUG (NN_PIA_BUILD == NN_PIA_BUILD_DEBUG)
137
#define NN_PIA_DEVELOP (NN_PIA_BUILD == NN_PIA_BUILD_DEVELOP)
138
#define NN_PIA_RELEASE (NN_PIA_BUILD == NN_PIA_BUILD_RELEASE)
139
140
#define NN_PIA_UNDER_DEBUG (NN_PIA_BUILD <= NN_PIA_BUILD_DEBUG)
141
#define NN_PIA_UNDER_DEVELOP (NN_PIA_BUILD <= NN_PIA_BUILD_DEVELOP)
142
143
#define NN_PIA_ENABLE_TRACE (NN_PIA_UNDER_DEVELOP)
144
#define NN_PIA_ENABLE_ASSERT (NN_PIA_UNDER_DEVELOP)
Include
nn
pia
pia_Settings.h
© 2016 Nintendo Co., Ltd. All rights reserved. 記載されている会社名、製品名等は、各社の登録商標または商標です。