Document the __OBJC__ macro.
authorNicola Pero <nicola@gcc.gnu.org>
Thu, 10 Jan 2002 11:53:19 +0000 (11:53 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Thu, 10 Jan 2002 11:53:19 +0000 (11:53 +0000)
From-SVN: r48724

gcc/doc/cpp.texi

index 39ff7fdce9ace5045947abd6070fd269ca6d6178..3572384613cf817b607d08e0b72978ba9c6660a1 100644 (file)
@@ -1893,6 +1893,11 @@ calculate a single number, then compare that against a threshold:
 @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)}}.