Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7e73e171833bc3fce93ca783617a46a346001843
https://github.com/WebKit/WebKit/commit/7e73e171833bc3fce93ca783617a46a346001843
Author: Richard Robinson <[email protected]>
Date: 2026-02-03 (Tue, 03 Feb 2026)
Changed paths:
M Source/WTF/wtf/Assertions.cpp
M Source/WTF/wtf/Assertions.h
Log Message:
-----------
[Swift in WebKit] Unable to use most WebCore types from WebKit in Swift
https://bugs.webkit.org/show_bug.cgi?id=306834
rdar://169501638
Reviewed by Mark Lam.
If the definition of a function body is visible to two different modules, the
definitions must match exactly.
Between WebCore and WebKit, this is not always the case, specifically for
functions defined in headers that use
the set of `RELEASE_ASSERT` macros. This is because the expansion of that macro
results in the `__COUNTER__`
variable being used, resulting in that function's body differing between
WebCore and WebKit.
Fix by removing `__COUNTER__` from these macros as it was deemed not critical
to be used.
* Source/WTF/wtf/Assertions.cpp:
(WTFCrashWithInfoImpl):
* Source/WTF/wtf/Assertions.h:
(WTFCrashWithInfo):
Canonical link: https://commits.webkit.org/306692@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications