CTR Pia  4.11.3
Game Communication Engine
Debugging Macros Provided by the Pia Library
Debugging macros provided by the Pia library. [More...]

Assertions

#definePIA_ASSERT (EXP)   ((void)0)
If EXP is false or NULL, the program quits.
#definePIA_ASSERTMSG (EXP,...)   ((void)0)
If EXP is false or NULL, the program quits.
#definePIA_COMPILE_ASSERT (EXP)
If EXP is false or NULL, a compilation error results.

Panic

#definePIA_PANIC (...)   PIA_BASIC_HALT ( __VA_ARGS__)
Quits the program.

Log Output

#definePIA_CACHED_PRINTF (...)   { }
Caches console output. When no instance of CachedPrint has been generated, console output operates normally.
#definePIA_CACHED_VPRINTF (format, varg)   { (void)(format);  (void)(varg); }
Caches console output. When no instance of CachedPrint has been generated, console output operates normally.

Others

#defineNN_PIA_COMMON_SET_PROGRAM_INFORMATION ()   
Defines a macro for registering the SDK and NEX versions being used by the application to the Pia library.

Description

Debugging macros provided by the Pia library.

Macro Definitions

#define PIA_ASSERT ( EXP) ((void)0)
When the EXP argument is false or NULL, the program quits. When you use this macro, all strings that you have output using the PIA_CACHED_PRINTF macro are output from the cache. This macro is ignored in release builds.
Arguments
[in]EXPIf this value is false or NULL, the program quits.
See Also
PIA_CACHED_PRINTF
#define PIA_ASSERTMSG ( EXP,
...
) ((void) 0)
When the EXP argument is false or NULL, the program quits. When you use this macro, all strings that you have output using the PIA_CACHED_PRINTF macro are output from the cache. This macro is ignored in release builds.
Arguments
[in]EXPIf this value is false or NULL, the program quits.
[in]...The arguments are the same as for the standard library's printf function.
See Also
PIA_CACHED_PRINTF
#define PIA_COMPILE_ASSERT ( EXP)
A compiler error occurs if the argument
EXP is false or NULL.
This is a compile-time (static) assert macro. Specify a constant expression for the EXP argument.
Arguments
[in]EXPIf this value is false or NULL, an abort is called, resulting in a compilation error.
#define PIA_CACHED_PRINTF ( ...) {}
Caches console output. When no instance of CachedPrint has been generated, console output operates normally.
Arguments
[in]...The arguments are the same as for the standard library's printf function.
#define PIA_CACHED_VPRINTF ( format,
varg
) {(void)(format); (void)(varg);}
Caches console output. When no instance of CachedPrint has been generated, console output operates normally.
Arguments
[in]formatSpecify the output format string.
[in]vargSpecify a variable argument list.
#define PIA_PANIC ( ...) PIA_BASIC_HALT(VA_ARGS)
Forcibly halts the program. When you use this macro, all strings that you have output using the PIA_CACHED_PRINTF macro are output from the cache.
Arguments
[in]...The arguments are the same as for the standard library's printf function.
See Also
PIA_CACHED_PRINTF
#define NN_PIA_COMMON_SET_PROGRAM_INFORMATION ()
This macro registers information about the SDK and NEX library used by the application to the PIA library. This macro is meant to be called after common::Initialize. NEX header files must be included before you access the constant representing the NEX version number.