mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Don't assert() check_tagged, that causes assert failures in debug mode for code that works in release
This commit is contained in:
@@ -226,7 +226,11 @@ String tagged_substr_replace(const String& input, size_t start, size_t end, cons
|
||||
*/
|
||||
bool check_tagged(const String& str, bool check_balance = true);
|
||||
#ifdef _DEBUG
|
||||
#define assert_tagged(...) assert(check_tagged(__VA_ARGS__))
|
||||
#if 0
|
||||
#define assert_tagged(...) assert(check_tagged(__VA_ARGS__))
|
||||
#else
|
||||
#define assert_tagged(...) check_tagged(__VA_ARGS__)
|
||||
#endif
|
||||
#else
|
||||
#define assert_tagged(...) do{}while(0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user