Add bracketing to macro use of parameters

This commit is contained in:
baldurk
2020-01-21 18:28:56 +00:00
parent 322e3c667d
commit 4a779e371b
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -417,8 +417,8 @@ void rdcassert(const char *msg, const char *file, unsigned int line, const char
#endif
#define RDCASSERT(...) RDCASSERTMSG("", __VA_ARGS__)
#define RDCASSERTEQUAL(a, b) RDCASSERTMSG("", a == b, a, b)
#define RDCASSERTNOTEQUAL(a, b) RDCASSERTMSG("", a != b, a, b)
#define RDCASSERTEQUAL(a, b) RDCASSERTMSG("", (a) == (b), a, b)
#define RDCASSERTNOTEQUAL(a, b) RDCASSERTMSG("", (a) != (b), a, b)
//
// Compile asserts