From 50a94f972d26ee15fc22cce657d13023d1022905 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 26 Jan 2021 09:41:55 +0000 Subject: Fix debug macro situation (#5114) Use the standard NDEBUG. --- src/Generating/Caves.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Generating/Caves.cpp') diff --git a/src/Generating/Caves.cpp b/src/Generating/Caves.cpp index 0d22d5b96..39497b45f 100644 --- a/src/Generating/Caves.cpp +++ b/src/Generating/Caves.cpp @@ -105,9 +105,9 @@ public: cChunkDef::HeightMap & a_HeightMap ); - #ifdef _DEBUG + #ifndef NDEBUG AString ExportAsSVG(int a_Color, int a_OffsetX, int a_OffsetZ) const; - #endif // _DEBUG + #endif // !NDEBUG } ; typedef std::vector cCaveTunnels; @@ -530,7 +530,7 @@ void cCaveTunnel::ProcessChunk( } // for itr - m_Points[] /* - #ifdef _DEBUG + #ifndef NDEBUG // For debugging purposes, outline the shape of the cave using glowstone, after carving the entire cave: for (cCaveDefPoints::const_iterator itr = m_Points.begin(), end = m_Points.end(); itr != end; ++itr) { @@ -545,7 +545,7 @@ void cCaveTunnel::ProcessChunk( cChunkDef::SetBlock(a_BlockTypes, DifX, itr->m_BlockY, DifZ, E_BLOCK_GLOWSTONE); } } // for itr - m_Points[] - #endif // _DEBUG + #endif // !NDEBUG //*/ } @@ -553,7 +553,7 @@ void cCaveTunnel::ProcessChunk( -#ifdef _DEBUG +#ifndef NDEBUG AString cCaveTunnel::ExportAsSVG(int a_Color, int a_OffsetX, int a_OffsetZ) const { AString SVG; @@ -568,7 +568,7 @@ AString cCaveTunnel::ExportAsSVG(int a_Color, int a_OffsetX, int a_OffsetZ) cons SVG.append("\"/>\n"); return SVG; } -#endif // _DEBUG +#endif // !NDEBUG -- cgit v1.2.3