Changeset 232184 in webkit


Ignore:
Timestamp:
May 24, 2018, 10:09:33 PM (7 years ago)
Author:
mitz@apple.com
Message:

ProcessLauncherMac.mm contains a couple of meaningless #ifndef directives
https://bugs.webkit.org/show_bug.cgi?id=185973

Reviewed by Tim Horton.

  • UIProcess/Launcher/mac/ProcessLauncherMac.mm:

(WebKit::ProcessLauncher::launchProcess): Use #if !ASSERT_DISABLED to guard statements that

are only needed for an assertion, instead of #ifndef _NDEBUG, which is always true.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r232176 r232184  
     12018-05-24  Dan Bernstein  <mitz@apple.com>
     2
     3        ProcessLauncherMac.mm contains a couple of meaningless #ifndef directives
     4        https://bugs.webkit.org/show_bug.cgi?id=185973
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
     9        (WebKit::ProcessLauncher::launchProcess): Use #if !ASSERT_DISABLED to guard statements that
     10          are only needed for an assertion, instead of #ifndef _NDEBUG, which is always true.
     11
    1122018-05-24  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    213
  • trunk/Source/WebKit/UIProcess/Launcher/mac/ProcessLauncherMac.mm

    r232160 r232184  
    213213            return;
    214214
    215 #ifndef _NDEBUG
     215#if !ASSERT_DISABLED
    216216        mach_port_urefs_t sendRightCount = 0;
    217217        mach_port_get_refs(mach_task_self(), listeningPort, MACH_PORT_RIGHT_SEND, &sendRightCount);
     
    250250            ASSERT(!strcmp(xpc_dictionary_get_string(reply, "message-name"), "process-finished-launching"));
    251251
    252 #ifndef _NDEBUG
     252#if !ASSERT_DISABLED
    253253            mach_port_urefs_t sendRightCount = 0;
    254254            mach_port_get_refs(mach_task_self(), listeningPort, MACH_PORT_RIGHT_SEND, &sendRightCount);
Note: See TracChangeset for help on using the changeset viewer.