Re: STAssertEquals and type-checking
Re: STAssertEquals and type-checking
- Subject: Re: STAssertEquals and type-checking
- From: Jens Alfke <email@hidden>
- Date: Tue, 16 Aug 2011 12:50:14 -0700
On Aug 16, 2011, at 12:00 PM, Kyle Sluder wrote:
> I suppose you could write some wrapper macros that use __typeof (or whatever that compiler-specific keyword is) to automatically cast your second argument to the type of the first argument. You could even limit it to "safe" conversions.
Yeah, I’ve done it before and it’s not that hard*. I was just wondering if anyone had fixed the ST* macros to do the same.
—Jens
* https://bitbucket.org/snej/myutilities/src/5f25fbb44fa6/Test.h — see AssertEq._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden