diff options
author | thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-02-27 22:22:04 +0000 |
---|---|---|
committer | thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-02-27 22:22:04 +0000 |
commit | b1df2944b71fad420fd04607e16a80d7591a3c1b (patch) | |
tree | 3fa28cacbe452530757e88444d8f0aa0ee3bb63c /GTMDefines.h | |
parent | 3388ce723f73ae47db17a9c7c3c3f766d566d0f7 (diff) |
a few fixes (and bug fix) found by clang
Diffstat (limited to 'GTMDefines.h')
-rw-r--r-- | GTMDefines.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/GTMDefines.h b/GTMDefines.h index b41a6c8..5fbd773 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -119,15 +119,15 @@ GTM_EXTERN void _GTMUnitTestDevLog(NSString *format, ...); // we directly invoke the NSAssert handler so we can pass on the varargs // (NSAssert doesn't have a macro we can use that takes varargs) #if !defined(NS_BLOCK_ASSERTIONS) - #define _GTMDevAssert(condition, ...) \ - do { \ - if (!(condition)) { \ - [[NSAssertionHandler currentHandler] \ - handleFailureInFunction:[NSString stringWithCString:__PRETTY_FUNCTION__] \ - file:[NSString stringWithCString:__FILE__] \ - lineNumber:__LINE__ \ - description:__VA_ARGS__]; \ - } \ + #define _GTMDevAssert(condition, ...) \ + do { \ + if (!(condition)) { \ + [[NSAssertionHandler currentHandler] \ + handleFailureInFunction:[NSString stringWithUTF8String:__PRETTY_FUNCTION__] \ + file:[NSString stringWithUTF8String:__FILE__] \ + lineNumber:__LINE__ \ + description:__VA_ARGS__]; \ + } \ } while(0) #else // !defined(NS_BLOCK_ASSERTIONS) #define _GTMDevAssert(condition, ...) do { } while (0) |