projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3987b9d
)
Document the __OBJC__ macro.
author
Nicola Pero
<nicola@gcc.gnu.org>
Thu, 10 Jan 2002 11:53:19 +0000
(11:53 +0000)
committer
Nicola Pero
<nicola@gcc.gnu.org>
Thu, 10 Jan 2002 11:53:19 +0000
(11:53 +0000)
From-SVN: r48724
gcc/doc/cpp.texi
patch
|
blob
|
history
diff --git
a/gcc/doc/cpp.texi
b/gcc/doc/cpp.texi
index 39ff7fdce9ace5045947abd6070fd269ca6d6178..3572384613cf817b607d08e0b72978ba9c6660a1 100644
(file)
--- 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)}}.