From c17701929ced30a8fc99d3dcaac37c77b30e970a Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Thu, 10 Jan 2002 11:53:19 +0000 Subject: Document the __OBJC__ macro. From-SVN: r48724 --- gcc/doc/cpp.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc') 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)}}. -- cgit v1.1