diff --git a/Toshi/Include/TKernel/TDebug.h b/Toshi/Include/TKernel/TDebug.h index 8b211a0..74cfcfb 100644 --- a/Toshi/Include/TKernel/TDebug.h +++ b/Toshi/Include/TKernel/TDebug.h @@ -15,6 +15,8 @@ __debugbreak(); \ } +#define TDPRINTF(format, ...) TDebug_Printf(format, __VA_ARGS__); + TOSHI_NAMESPACE_BEGIN enum TDebug_Flags : TUINT @@ -56,6 +58,7 @@ TOSHI_NAMESPACE_END #else #define TASSERT(expression) +#define TDPRINTF(format, ...) #endif // TOSHI_DEBUG diff --git a/Toshi/Source/TApplication/TApplication.cpp b/Toshi/Source/TApplication/TApplication.cpp index 87d671a..dd23c16 100644 --- a/Toshi/Source/TApplication/TApplication.cpp +++ b/Toshi/Source/TApplication/TApplication.cpp @@ -8,13 +8,13 @@ TBOOL TApplication::Create(TPCCHAR a_pcName, TINT argc, TPCCHAR* argv) m_pcName = a_pcName; if (m_bVerbose) { - TDebug_Printf("Creating Toshi Application \"%s\".\n", m_pcName.GetString()); + TDPRINTF("Creating Toshi Application \"%s\".\n", m_pcName.GetString()); if (argc > 0 && argv) { - TDebug_Printf("Command line parameters: %d.\n", argc); + TDPRINTF("Command line parameters: %d.\n", argc); for (TINT i = 0; i < argc; i++) { - TDebug_Printf(" Arg[%d]: \"%s\"\n", i, argv[i+1]); + TDPRINTF(" Arg[%d]: \"%s\"\n", i, argv[i+1]); } } } diff --git a/Toshi/Source/TKernel/TObject.cpp b/Toshi/Source/TKernel/TObject.cpp index 28f3822..2faa862 100644 --- a/Toshi/Source/TKernel/TObject.cpp +++ b/Toshi/Source/TKernel/TObject.cpp @@ -55,7 +55,7 @@ TBOOL DumpObjectClassTree_BaseEnd(TClass*, TPCVOID) TBOOL DumpObjectClassTree_Check(TClass*, TPCVOID) { - TDebug_Printf("DumpObjectClassTree_Check() Not Implemented"); + TDPRINTF("DumpObjectClassTree_Check() Not Implemented"); return TTRUE; }