[Webkit-unassigned] [Bug 144845] [CMake] Some macros need to be defined/undefined, rather than ON/OFF

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 10 14:37:26 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144845

Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcatanzaro at igalia.com,
                   |                            |mrobinson at webkit.org

--- Comment #3 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Thanks for your patches. I'd like to change the code to be more robust to this, checking values rather than definitions. But I don't see value in fighting that fight in npapi.h, so this is probably the best approach. Let's see what Martin thinks. There should for sure be a warning comment, though, or someone will revert this patch in passing as a cleanup.

(In reply to comment #1)
> The latter failure (DEVELOPMENT_BUILD) has already been changed on master
> but Tools/MiniBrowser/gtk/main.c:260 may still need to read #if
> ENABLE(DEVELOPER_MODE) instead of #if ENABLE_DEVELOPER_MODE - I'm not
> exactly sure how that WTF mechanism works.

ENABLE(DEVELOPER_MODE) is true if ENABLE_DEVELOPER_MODE is defined and its value is not 0, and false otherwise. Since MiniBrowser uses the WebKitGTK+ public API and not WTF internals, ENABLE(DEVELOPER_MODE) is unavailable to it, so it just checks ENABLE_DEVELOPER_MODE directly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150510/3060355a/attachment.html>


More information about the webkit-unassigned mailing list