Skip to content

Commit 6b13be8

Browse files
fix: split ifndef for CHECK and CHECK_MSG
1 parent 30213e9 commit 6b13be8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/include/flang/Common/idioms.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ template <typename... LAMBDAS> visitors(LAMBDAS... x) -> visitors<LAMBDAS...>;
8787
// To disable, compile with '-DCHECK=(void)'
8888
#ifndef CHECK
8989
#define CHECK(x) ((x) || (DIE("CHECK(" #x ") failed"), false))
90+
#endif
91+
9092
// Same as above, but with a custom error message.
93+
#ifndef CHECK_MSG
9194
#define CHECK_MSG(x, y) ((x) || (DIE("CHECK(" #x ") failed: " #y), false))
9295
#endif
9396

0 commit comments

Comments
 (0)