Bug 108870

Summary: Rationalize the use of iOS/Mac #defines in Assertions.cpp
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, ddkilzer, ojan.autocc, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
buildbot: commit-queue-
Same patch none

Description Benjamin Poulain 2013-02-04 15:23:26 PST
Rationalize the use of iOS/Mac #defines in Assertions.cpp
Comment 1 Benjamin Poulain 2013-02-04 15:29:48 PST
Created attachment 186478 [details]
Patch
Comment 2 David Kilzer (:ddkilzer) 2013-02-04 15:41:41 PST
Comment on attachment 186478 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=186478&action=review

r=me with USE(APPLE_SYSTEM_LOG) and considering whether we want USE(CF) && !PLATFORM(WIN).

> Source/WTF/wtf/Assertions.cpp:48
> -#if PLATFORM(MAC)
> +#if USE(CF)

I believe this will compile on Windows as well.  Do we know if we want that?  If not:

#if USE(CF) && !PLATFORM(WIN)

> Source/WTF/wtf/Assertions.cpp:51
> +#define USE_APPLE_SYSTEM_LOG

We should use this so we can use USE(APPLE_SYSTEM_LOG) later in the file:

#define USE_APPLE_SYSTEM_LOG 1

> Source/WTF/wtf/Assertions.cpp:83
> -#if PLATFORM(MAC)
> +#if USE(CF)

Ditto.

> Source/WTF/wtf/Assertions.cpp:100
> +#if defined(USE_APPLE_SYSTEM_LOG)

#if USE(APPLE_SYSTEM_LOG)

> Source/WTF/wtf/Assertions.cpp:111
> +#if defined(USE_APPLE_SYSTEM_LOG)

#if USE(APPLE_SYSTEM_LOG)
Comment 3 Benjamin Poulain 2013-02-04 16:58:21 PST
Created attachment 186500 [details]
Patch
Comment 4 Build Bot 2013-02-04 20:34:11 PST
Comment on attachment 186500 [details]
Patch

Attachment 186500 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/16370493
Comment 5 Benjamin Poulain 2013-02-04 23:31:31 PST
Created attachment 186556 [details]
Same patch

Same patch for the Windows EWS. The bot looks drunk again given the previous results.
Comment 6 Benjamin Poulain 2013-02-05 12:59:51 PST
Comment on attachment 186556 [details]
Same patch

Clearing flags on attachment: 186556

Committed r141919: <http://trac.webkit.org/changeset/141919>
Comment 7 Benjamin Poulain 2013-02-05 12:59:54 PST
All reviewed patches have been landed.  Closing bug.