17 #include <pia/common/common_definitions.h> 18 #include <pia/common/common_CriticalSection.h> 33 #if NN_PIA_UNDER_DEVELOP 34 #define PIA_CACHED_PRINTF(...) \ 35 if (::nn::pia::common::CachedPrint::GetInstance() != NULL) \ 37 ::nn::pia::common::CachedPrint::GetInstance()->Printf(__VA_ARGS__); \ 41 PIA_BASIC_REPORT(__VA_ARGS__); \ 44 #define PIA_CACHED_PRINTF(...) \ 57 #if NN_PIA_UNDER_DEVELOP 58 #define PIA_CACHED_VPRINTF(format, varg) \ 59 if (::nn::pia::common::CachedPrint::GetInstance() != NULL) \ 61 ::nn::pia::common::CachedPrint::GetInstance()->VPrintf((format), (varg)); \ 65 PIA_BASIC_VREPORT((format), (varg)); \ 68 #define PIA_CACHED_VPRINTF(format, varg) \ 139 void Trace(u64 flag)
const;
149 void VPrintf(
const char* cpFormat, va_list varg);
160 void Printf(
const char* cpFormat, ...);
189 nn::Result Read(
char* pBuffer,
size_t* pLength,
size_t bufferSize);
213 CriticalSection m_CriticalSection;
static CachedPrint * GetInstance()
Gets a pointer to the CachedPrint instance (singleton pattern).
Definition: common_CachedPrint.h:128
static void DestroyInstance()
Destroys the instance (singleton pattern).
void Clear()
Clears the string currently being cached.
void Flush()
Outputs the string currently being cached and then clears it.
void Trace(u64 flag) const
Prints information useful for debugging.
Caches console output. This class is used for debugging. Do not use it in production versions of code...
Definition: common_CachedPrint.h:93
static nn::Result CreateInstance(u32 bufferSize)
Creates an instance (singleton pattern).
This is the common base class used inside the Pia library.
Definition: common_RootObject.h:40