You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8f7048
Browse filesBrowse the repository at this point in the historyBrowse files
[Swift] Cease to tie ASSERT_ENABLED and LOG_DISABLED
https://bugs.webkit.org/show_bug.cgi?id=329066
Reviewed by Abrar Rahman Protyasha.
324710@main gated Swift's debugLog on ASSERT_ENABLED, because Swift could not
see LOG_DISABLED, and added a static_assert that the two agree. This turned out
to be inconvenient.
Move the *_DISABLED defaults derived from ASSERT_ENABLED into PlatformEnable.h,
and have generate-platform-args forward LOG_ macros and resolve `!NAME` values,
so Swift sees LOG_DISABLED and the static_assert can go.
Alternatives considered: preprocessing Assertions.h in generate-platform-args
instead. It includes system headers (e.g. syslog.h via sd-journal.h, which
defines LOG_ALERT), so the script would have had to hard-code macro names
rather than match prefixes.
This also corrects a couple of comments.
* Source/WTF/Scripts/generate-platform-args:
(platform_defines_from_dM):
* Source/WTF/wtf/Assertions.h:
* Source/WTF/wtf/Logging.h:
* Source/WTF/wtf/PlatformEnable.h:
* Source/WebKit/Platform/Logging.swift:
Canonical link: https://commits.webkit.org/324870@main
0 commit comments