You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CoreFoundation: use C99 macro expansion (swiftlang#379)
Rather than defining the various flavours of CFAssert requiring the user to
count the number of substituted parameters, collapse them to CFAssert. The C99
variadic macro expansion permits us to ensure that the arguments are all
passable. At the same time, the compiler validation of the printf conversion
will still catch the missing arguments (which could still be possible to have in
the previous case by just using the wrong count).
CFAssert2((NULL!=__CFRuntimeClassTable[type]) &&__kCFNotATypeTypeID!=type&&__kCFTypeTypeID!=type, __kCFLogAssertion, "%s(): type %d is not a CF type ID", __PRETTY_FUNCTION__, type);
593
+
CFAssert((NULL!=__CFRuntimeClassTable[type]) &&__kCFNotATypeTypeID!=type&&__kCFTypeTypeID!=type, __kCFLogAssertion, "%s(): type %d is not a CF type ID", __PRETTY_FUNCTION__, type);
0 commit comments