14 #pragma managed( push, off ) 22 #define DebugInstance() LibCommon::CDebug::GetInstance() 23 #define DebugChar(...) DebugInstance().OutputChar(__VA_ARGS__)
24 #define DebugString(...) DebugInstance().OutputString(__VA_ARGS__)
25 #define DebugFormat(...) DebugInstance().OutputFormat(__VA_ARGS__)
26 #define DebugNewLine() DebugInstance().OutputNewLine()
27 #define DebugLineString(...) DebugInstance().OutputLineString(__VA_ARGS__)
28 #define DebugLineFormat(...) DebugInstance().OutputLineFormat(__VA_ARGS__)
29 #define DebugExLineFormat(...) DebugInstance().ExOutputLineFormat(__VA_ARGS__)
30 #define DebugNoIndent(...) DebugInstance().ExOutputLineFormat(true,false,__VA_ARGS__)
31 #define DebugLine(...) DebugInstance().ExOutputLineFormat(false,false,__VA_ARGS__)
32 #define DebugFunction() DebugLineFormat(L"%s()",__FUNCTIONW__)
33 #define DebugIndent() DebugInstance().Indent()
34 #define DebugUnindent() DebugInstance().Unindent()
35 #define DebugBlockIn(...) DebugLineFormat(__VA_ARGS__);DebugIndent()
36 #define DebugBlockOut(...) DebugUnindent();DebugLineFormat(__VA_ARGS__)
37 #define DebugHeader() DebugBlockIn (L"%s() {", __FUNCTIONW__)
38 #define DebugFooter() DebugBlockOut(L"} // %s()",__FUNCTIONW__)
63 explicit CDebug() noexcept;
74 virtual ~
CDebug() noexcept;
90 virtual bool OutputString(
wchar_t const* pszString ) noexcept
override;
109 static int const BUFFER_SIZE = ( 2048 - 1 );
114 wchar_t m_szString[ BUFFER_SIZE + 1 ];
129 #pragma managed( pop ) static CDebug & GetInstance() noexcept
インスタンス取得関数
static CDebug s_cInstance
静的インスタンス
#define LIB_COMMON_API
ダイナミックライブラリインポート宣言