Merge pull request #43776 from lawnjelly/ewok_asserts3

2d Legacy - close vulnerabilities and more debug checks
This commit is contained in:
Rémi Verschelde
2020-11-24 09:14:17 +01:00
committed by GitHub
7 changed files with 203 additions and 77 deletions

View File

@ -55,4 +55,13 @@
#define RAST_DEBUG_ASSERT(a)
#endif
// Thin wrapper around ERR_FAIL_COND to allow us to make it debug only
#ifdef DEBUG_ENABLED
#define RAST_FAIL_COND(m_cond) ERR_FAIL_COND(m_cond)
#else
#define RAST_FAIL_COND(m_cond) \
if (m_cond) { \
}
#endif
#endif // RASTERIZER_ASSERTS_H