We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30213e9 commit 6b13be8Copy full SHA for 6b13be8
flang/include/flang/Common/idioms.h
@@ -87,7 +87,10 @@ template <typename... LAMBDAS> visitors(LAMBDAS... x) -> visitors<LAMBDAS...>;
87
// To disable, compile with '-DCHECK=(void)'
88
#ifndef CHECK
89
#define CHECK(x) ((x) || (DIE("CHECK(" #x ") failed"), false))
90
+#endif
91
+
92
// Same as above, but with a custom error message.
93
+#ifndef CHECK_MSG
94
#define CHECK_MSG(x, y) ((x) || (DIE("CHECK(" #x ") failed: " #y), false))
95
#endif
96
0 commit comments