1
0

Fix debug macro situation (#5114)

Use the standard NDEBUG.
This commit is contained in:
Tiger Wang
2021-01-26 09:41:55 +00:00
committed by GitHub
parent 19302eeb87
commit 50a94f972d
31 changed files with 99 additions and 131 deletions

View File

@@ -60,10 +60,10 @@ bool cScoreboardSerializer::Save(void)
SaveScoreboardToNBT(Writer);
Writer.Finish();
#ifdef _DEBUG
#ifndef NDEBUG
cParsedNBT TestParse(Writer.GetResult());
ASSERT(TestParse.IsValid());
#endif // _DEBUG
#endif // !NDEBUG
GZipFile::Write(m_Path, Writer.GetResult());