Skip to content

Commit

Permalink
Fix Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonNepelius committed Nov 12, 2023
1 parent 3fedbe1 commit 7fdfdf0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Toshi/Include/TKernel/TDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
__debugbreak(); \
}

#define TDPRINTF(format, ...) TDebug_Printf(format, __VA_ARGS__);

TOSHI_NAMESPACE_BEGIN

enum TDebug_Flags : TUINT
Expand Down Expand Up @@ -56,6 +58,7 @@ TOSHI_NAMESPACE_END
#else

#define TASSERT(expression)
#define TDPRINTF(format, ...)

#endif // TOSHI_DEBUG

Expand Down
6 changes: 3 additions & 3 deletions Toshi/Source/TApplication/TApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Toshi/Source/TKernel/TObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7fdfdf0

Please sign in to comment.