1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Update lingering do/while(0) defines

This commit is contained in:
Thaddeus Crews
2024-04-04 14:17:22 -05:00
parent f6a78f83aa
commit bbb3eb3a1a
4 changed files with 27 additions and 18 deletions

View File

@@ -77,15 +77,17 @@ subject to the following restrictions:
#ifdef DEBUG_ENABLED
#define CHULL_ASSERT(m_cond) \
do { \
if constexpr (true) { \
if (unlikely(!(m_cond))) { \
ERR_PRINT("Assertion \"" _STR(m_cond) "\" failed."); \
} \
} while (0)
} else \
((void)0)
#else
#define CHULL_ASSERT(m_cond) \
do { \
} while (0)
if constexpr (true) { \
} else \
((void)0)
#endif
#if defined(DEBUG_CONVEX_HULL) || defined(SHOW_ITERATIONS)