RFA - Patch: document __OBJC__
Nicola Pero
nicola@brainstorm.co.uk
Wed Jan 9 08:46:00 GMT 2002
This patch documents the __OBJC__ preprocessor define, which wasn't
documented anywhere.
I put it under the 'Common predefined macros' rather than the 'Standard
predefined macros' since I don't think it's required by any standard.
Ok to apply ?
Wed Jan 9 14:36:16 2002 Nicola Pero <n.pero@mi.flashnet.it>
* doc/cpp.texi: Document the __OBJC__ preprocess macro.
Index: cpp.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/cpp.texi,v
retrieving revision 1.21
diff -u -r1.21 cpp.texi
--- cpp.texi 2002/01/08 19:03:20 1.21
+++ cpp.texi 2002/01/09 16:35:38
@@ -1893,6 +1893,11 @@
@noindent
Many people find this form easier to understand.
+@item __OBJC__
+This macro is defined when the Objective-C compiler is in use. You can
use
+@code{__OBJC__} to test whether a header is compiled by a C compiler
+or a Objective-C compiler.
+
@item __GNUG__
The GNU C++ compiler defines this. Testing it is equivalent to
testing @code{@w{(__GNUC__ && __cplusplus)}}.
More information about the Gcc-patches
mailing list