Title: [288712] trunk/Source/WTF
Revision
288712
Author
cdu...@apple.com
Date
2022-01-27 16:44:56 -0800 (Thu, 27 Jan 2022)

Log Message

Unreviewed fix for older macOS builds after r288577.

* wtf/Assertions.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (288711 => 288712)


--- trunk/Source/WTF/ChangeLog	2022-01-28 00:42:42 UTC (rev 288711)
+++ trunk/Source/WTF/ChangeLog	2022-01-28 00:44:56 UTC (rev 288712)
@@ -1,3 +1,9 @@
+2022-01-27  Chris Dumez  <cdu...@apple.com>
+
+        Unreviewed fix for older macOS builds after r288577.
+
+        * wtf/Assertions.h:
+
 2022-01-27  Devin Rousso  <drou...@apple.com>
 
         Change version number for HAVE_PASSKIT_DEFAULT_SHIPPING_METHOD

Modified: trunk/Source/WTF/wtf/Assertions.h (288711 => 288712)


--- trunk/Source/WTF/wtf/Assertions.h	2022-01-28 00:42:42 UTC (rev 288711)
+++ trunk/Source/WTF/wtf/Assertions.h	2022-01-28 00:44:56 UTC (rev 288712)
@@ -758,9 +758,14 @@
 }
 
 #ifndef CRASH_WITH_INFO
+
+#define PP_THIRD_ARG(a,b,c,...) c
+#define VA_OPT_SUPPORTED_I(...) PP_THIRD_ARG(__VA_OPT__(,),true,false,)
+#define VA_OPT_SUPPORTED VA_OPT_SUPPORTED_I(?)
+
 // This is useful if you are going to stuff data into registers before crashing, like the
 // crashWithInfo functions below.
-#if COMPILER(MSVC)
+#if COMPILER(MSVC) || !VA_OPT_SUPPORTED
 // FIXME: Re-check whether MSVC 2020 supports __VA_OPT__ and remove the special
 //        casing once older versions of the compiler are no longer supported.
 #define CRASH_WITH_INFO(...) do { \
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to