Revision: 576
Author: thomasvl
Date: Sat Sep 8 14:23:36 2012
Log: type fixup
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=576
Deleted:
/trunk/ARCMacros
Modified:
/trunk/UnitTesting/GTMSenTestCase.h
=======================================
--- /trunk/UnitTesting/GTMSenTestCase.h Thu Jul 26 13:00:23 2012
+++ /trunk/UnitTesting/GTMSenTestCase.h Sat Sep 8 14:23:36 2012
@@ -144,8 +144,8 @@
#define STAssertNotNULL(a1, description, ...) \
do { \
@try { \
- const void* a1value = (a1); \
- if (a1value == NULL) { \
+ __typeof__(a1) a1value = (a1); \
+ if (a1value == (__typeof__(a1))NULL) { \
NSString *_expression = [NSString stringWithFormat:@"((%s) !=
NULL)", #a1]; \
[self failWithException:([NSException failureInCondition:_expression
\
isTrue:NO \
@@ -172,8 +172,8 @@
#define STAssertNULL(a1, description, ...) \
do { \
@try { \
- const void* a1value = (a1); \
- if (a1value != NULL) { \
+ __typeof__(a1) a1value = (a1); \
+ if (a1value != (__typeof__(a1))NULL) { \
NSString *_expression = [NSString stringWithFormat:@"((%s) ==
NULL)", #a1]; \
[self failWithException:([NSException failureInCondition:_expression
\
isTrue:NO \