With C++, there is a macro*__cplusplus*. Is there anything analogous for
the Objective-C 2.0?
The Xcode 3.0 support converting to Obj-C 2.0 code from pre-2.0 code.
However, there are people who still use Obj-C pre 2.0, or even though
they use the 2.0, they may want to maintain code compatibility with an
old compiler.
So, if there is a macro __OBJC_2_0__, it would be very helpful to write
appropriate code for both pre-2.0 and 2.0 compiler.
So, the code will be like :
#ifdef __OBJC_2_0__
statements in Objective-C 2.0 syntax
#else
statement in Obj-C pre 2.0 syntax
#endif
Thank you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden