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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to