CTR Pia
4.11.3
Game Communication Engine
Main Page
Namespace List
Class List
Class Index
Related Pages
Search Results
basicMacrosCtr.h
1
/*---------------------------------------------------------------------------*
2
Project: Pia
3
File: basicMacrosCtr.h
4
5
Copyright 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
14
15
// The basic macro for CTR.
16
17
#pragma once
18
19
#include <nn.h>
20
21
#define PIA_BASIC_REPORT_ALWAYS(...) nn::dbg::detail::Printf(__VA_ARGS__)
22
#define PIA_BASIC_VREPORT_ALWAYS(...) nn::dbg::detail::VPrintf(__VA_ARGS__)
23
24
#if NN_PIA_EXPERIMENT_USE_PRINT_HOOK
25
namespace
nn
26
{
27
namespace
pia
28
{
29
namespace
common
30
{
31
void
VPrintf(
const
char
* cpFormat, va_list varg);
32
void
Printf(
const
char
* cpFormat, ...);
33
}
34
}
35
}
36
#define PIA_BASIC_REPORT(...) ::nn::pia::common::Printf(__VA_ARGS__)
37
#define PIA_BASIC_VREPORT(...) ::nn::pia::common::VPrintf(__VA_ARGS__)
38
#else // else of NN_PIA_EXPERIMENT_USE_PRINT_HOOK
39
#define PIA_BASIC_REPORT(...) NN_LOG(__VA_ARGS__)
40
#define PIA_BASIC_VREPORT(...) NN_LOGV(__VA_ARGS__)
41
#endif // end of NN_PIA_EXPERIMENT_USE_PRINT_HOOK
42
43
#define PIA_BASIC_HALT(...) NN_PANIC(__VA_ARGS__)
44
45
#define PIA_IS_VALID_POINTER(ptr) NN_IS_VALID_POINTER(ptr)
46
47
#define PIA_ATTRIBUTE_ALIGN(N) NN_ATTRIBUTE_ALIGN(N)
48
49
#define PIA_CODE_POSITION_FILE __MODULE__
50
#define PIA_CODE_POSITION_FUNC __FUNCTION__
51
#define PIA_CODE_POSITION_LINE __LINE__
nn
Definition:
assert.h:115
include
pia
platform
basicMacrosCtr.h
© 2013–2017 Nintendo. All rights reserved. All company and product names in this document are the trademarks or registered trademarks of their respective companies.