mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Add bracketing to macro use of parameters
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user