Re: NS_DURING and CodeWarrior MSL
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.