Changeset 197149 in webkit


Ignore:
Timestamp:
Feb 25, 2016 5:00:24 PM (8 years ago)
Author:
ddkilzer@apple.com
Message:

Change ASSERT to RELEASE_ASSERT in SOFT_LINK_CLASS() macro

Follow-up fix noted by Andy Estes for:

[Cocoa] Always check the return value of dlopen() and dlsym() in Release builds
<http://webkit.org/b/154364>

  • platform/mac/SoftLinking.h:

(SOFT_LINK_CLASS): Change ASSERT to RELEASE_ASSERT to check the
return value of objc_getClass(). This matches what we do for
SOFT_LINK_CLASS_FOR_SOURCE().

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r197142 r197149  
     12016-02-25  David Kilzer  <ddkilzer@apple.com>
     2
     3        Change ASSERT to RELEASE_ASSERT in SOFT_LINK_CLASS() macro
     4
     5        Follow-up fix noted by Andy Estes for:
     6
     7            [Cocoa] Always check the return value of dlopen() and dlsym() in Release builds
     8            <http://webkit.org/b/154364>
     9
     10        * platform/mac/SoftLinking.h:
     11        (SOFT_LINK_CLASS): Change ASSERT to RELEASE_ASSERT to check the
     12        return value of objc_getClass().  This matches what we do for
     13        SOFT_LINK_CLASS_FOR_SOURCE().
     14
    1152016-02-25  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Source/WebCore/platform/mac/SoftLinking.h

    r196763 r197149  
    175175        framework##Library(); \
    176176        class##className = objc_getClass(#className); \
    177         ASSERT(class##className); \
     177        RELEASE_ASSERT(class##className); \
    178178        get##className##Class = className##Function; \
    179179        return class##className; \
Note: See TracChangeset for help on using the changeset viewer.