aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/cpp.texi
diff options
context:
space:
mode:
authorNicola Pero <nicola@gcc.gnu.org>2002-01-10 11:53:19 +0000
committerNicola Pero <nicola@gcc.gnu.org>2002-01-10 11:53:19 +0000
commitc17701929ced30a8fc99d3dcaac37c77b30e970a (patch)
treed223cd47339d8a485c3370aafd05ce0baf3586d0 /gcc/doc/cpp.texi
parent3987b9db30f95cd055f68d302da8e9c474b6feea (diff)
downloadgcc-c17701929ced30a8fc99d3dcaac37c77b30e970a.zip
gcc-c17701929ced30a8fc99d3dcaac37c77b30e970a.tar.gz
gcc-c17701929ced30a8fc99d3dcaac37c77b30e970a.tar.bz2
Document the __OBJC__ macro.
From-SVN: r48724
Diffstat (limited to 'gcc/doc/cpp.texi')
-rw-r--r--gcc/doc/cpp.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index 39ff7fd..3572384 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -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)}}.