mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
0442d0b1f3
Co-Authored-By: Lucy Phipps <landfillbaby69@gmail.com>
12 lines
417 B
Diff
12 lines
417 B
Diff
--- a/flang/include/flang/Common/idioms.h
|
|
+++ b/flang/include/flang/Common/idioms.h
|
|
@@ -89,6 +89,8 @@
|
|
#define CHECK(x) ((x) || (DIE("CHECK(" #x ") failed"), false))
|
|
// Same as above, but with a custom error message.
|
|
#define CHECK_MSG(x, y) ((x) || (DIE("CHECK(" #x ") failed: " #y), false))
|
|
+#elif !defined(CHECK_MSG)
|
|
+#define CHECK_MSG(x, y) CHECK(x)
|
|
#endif
|
|
|
|
// User-defined type traits that default to false:
|