mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 19:10:24 +01:00
unittest.h: change RAPIDJSON_ASSERT to allow usage in expressions
This commit is contained in:
@@ -117,7 +117,7 @@ public:
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#define RAPIDJSON_ASSERT(x) if (!(x)) throw AssertException(RAPIDJSON_STRINGIFY(x))
|
||||
#define RAPIDJSON_ASSERT(x) (!(x) ? throw AssertException(RAPIDJSON_STRINGIFY(x)) : (void)0u)
|
||||
|
||||
class Random {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user