Bug 108870 - Rationalize the use of iOS/Mac #defines in Assertions.cpp
Summary: Rationalize the use of iOS/Mac #defines in Assertions.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 15:23 PST by Benjamin Poulain
Modified: 2013-02-05 12:59 PST (History)
4 users (show)

See Also:


Attachments
Patch (2.33 KB, patch)
2013-02-04 15:29 PST, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (2.34 KB, patch)
2013-02-04 16:58 PST, Benjamin Poulain
buildbot: commit-queue-
Details | Formatted Diff | Diff
Same patch (2.34 KB, patch)
2013-02-04 23:31 PST, Benjamin Poulain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.