• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: STAssertEquals and type-checking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >STAssertEquals and type-checking (From: Jens Alfke <email@hidden>)
 >Re: STAssertEquals and type-checking (From: Sean McBride <email@hidden>)
 >Re: STAssertEquals and type-checking (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Options to defaults or commandline
  • Next by Date: Re: How can I prevent drag-and-drop initiation in an NSTextField
  • Previous by thread: Re: STAssertEquals and type-checking
  • Next by thread: Re: STAssertEquals and type-checking
  • Index(es):
    • Date
    • Thread