• 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: NS_DURING and CodeWarrior MSL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NS_DURING and CodeWarrior MSL


  • Subject: Re: NS_DURING and CodeWarrior MSL
  • From: Gus Mueller <email@hidden>
  • Date: Wed, 1 Oct 2003 20:56:43 -0700

Christopher Corbell (email@hidden) wrote:
<snip>
>
> The app in this case is mainly Cocoa but there's
> a lot of C++ mixed-in (it used to be a PowerPlant
> app). Most UI source is in .mm files. I'm trying
> to put in some Obj-C exception safety with
> NS_DURING/NS_HANDLER/NS_ENDHANDLER blocks, but these
> failed to compile with the error
> Error : undefined identifier '_setjmp'
>
> I'm guessing this may relate to a conflict between
> MSL C and /usr/include definitions setjmp in
> <setjmp.h>.

What I've done to solve this is put:

#define _setjmp setjmp

in my "Prefix Text" for the preprocessor. I wish I could remember where
I read about this- but I can't. So there may be drawback to this that
I'm not aware of (besides relying on a private call.)

-gus

--
August Mueller
http://flyingmeat.com/
VoodooPad - 1st Place U.S., Second O'Reilly Mac OS X Innovators Contest
"Christmas means carnage!" -- Ferdinand, the duck
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NS_DURING and CodeWarrior MSL (From: Christopher Corbell <email@hidden>)

  • Prev by Date: Localization of initWithWindowNibName
  • Next by Date: Re: German Toolbars & special characters
  • Previous by thread: NS_DURING and CodeWarrior MSL
  • Next by thread: German Toolbars & special characters
  • Index(es):
    • Date
    • Thread