CTR-Pia
5.4.3
Game Communication Engine
メインページ
ネームスペース一覧
クラス構成
クラス索引
関連ページ
Result 検索
全て
クラス
ネームスペース
関数
変数
型定義
列挙型
列挙型の値
ページ
pia_BasicMacrosCtr.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
// 基本マクロです。
15
16
#pragma once
17
18
#include <nn.h>
19
#include <stdio.h>
20
21
#define PIA_DIRECT_PRINT_ALWAYS(...) nn::dbg::detail::Printf(__VA_ARGS__)
22
#define PIA_DIRECT_VPRINT_ALWAYS(...) nn::dbg::detail::VPrintf(__VA_ARGS__)
23
24
#if NN_PIA_UNDER_DEVELOP
25
#define PIA_DIRECT_PRINT(...) PIA_DIRECT_PRINT_ALWAYS(__VA_ARGS__)
26
#define PIA_DIRECT_VPRINT(...) PIA_DIRECT_VPRINT_ALWAYS(__VA_ARGS__)
27
#else
28
#define PIA_DIRECT_PRINT(...) (void)0
29
#define PIA_DIRECT_VPRINT(...) (void)0
30
#endif
31
32
namespace
nn
33
{
34
namespace
pia
35
{
36
namespace
common
37
{
38
void
VPrintf(
const
char
* cpFormat, va_list varg);
39
void
Printf(
const
char
* cpFormat, ...);
40
}
41
}
42
}
43
#define PIA_HOOK_PRINT(...) ::nn::pia::common::Printf(__VA_ARGS__)
44
#define PIA_HOOK_VPRINT(...) ::nn::pia::common::VPrintf(__VA_ARGS__)
45
46
#define PIA_BASIC_HALT(...) NN_PANIC(__VA_ARGS__)
47
48
#define PIA_IS_VALID_POINTER(ptr) NN_IS_VALID_POINTER(ptr)
49
50
#define PIA_ATTRIBUTE_ALIGN(N) NN_ATTRIBUTE_ALIGN(N)
51
52
#define PIA_CODE_POSITION_FILE __MODULE__
53
#define PIA_CODE_POSITION_FUNC __FUNCTION__
54
#define PIA_CODE_POSITION_LINE __LINE__
55
56
#define PIA_SNPRINTF(...) snprintf(__VA_ARGS__)
Include
nn
pia
platform
pia_BasicMacrosCtr.h
© 2016 Nintendo Co., Ltd. All rights reserved. 記載されている会社名、製品名等は、各社の登録商標または商標です。