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

@@ -53,10 +53,10 @@ bool cMapSerializer::Save(void)
SaveMapToNBT(Writer);
Writer.Finish();
#ifdef _DEBUG
#ifndef NDEBUG
cParsedNBT TestParse(Writer.GetResult());
ASSERT(TestParse.IsValid());
#endif // _DEBUG
#endif // !NDEBUG
GZipFile::Write(m_Path, Writer.GetResult());
@@ -229,10 +229,10 @@ bool cIDCountSerializer::Save(void)
Writer.Finish();
#ifdef _DEBUG
#ifndef NDEBUG
cParsedNBT TestParse(Writer.GetResult());
ASSERT(TestParse.IsValid());
#endif // _DEBUG
#endif // !NDEBUG
cFile File;
if (!File.Open(m_Path, cFile::fmWrite))