RFA - Patch: document __OBJC__

Nicola Pero nicola@brainstorm.co.uk
Thu Jan 10 03:59:00 GMT 2002


> > This patch documents the __OBJC__ preprocessor define, which wasn't
> > documented anywhere.
> 
> OK.  You should mention that it has the value 1 when defined.
> 
> > 	* doc/cpp.texi: Document the __OBJC__ preprocess macro.
> 
>  "preprocessor macro"

Thanks - I applied 

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/10 11:52:50
@@ -1893,6 +1893,11 @@
 @noindent
 Many people find this form easier to understand.
 
+@item __OBJC__
+This macro is defined, with value 1, 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)}}.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.12630
diff -u -r1.12630 ChangeLog
--- ChangeLog   2002/01/10 10:21:19     1.12630
+++ ChangeLog   2002/01/10 11:54:17
@@ -1,3 +1,7 @@
+Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
+
+       * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
+
 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * optabs.c (expand_fix): Look for wider integer modes first.





More information about the Gcc-patches mailing list