1/*
2Copyright Rene Rivera 2011-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_LANGUAGE_OBJC_H
9#define BOOST_PREDEF_LANGUAGE_OBJC_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/* tag::reference[]
15= `BOOST_LANG_OBJC`
16
17http://en.wikipedia.org/wiki/Objective-C[Objective-C] language.
18
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
22
23| `+__OBJC__+` | {predef_detection}
24|===
25*/ // end::reference[]
26
27#define BOOST_LANG_OBJC BOOST_VERSION_NUMBER_NOT_AVAILABLE
28
29#if defined(__OBJC__)
30# undef BOOST_LANG_OBJC
31# define BOOST_LANG_OBJC BOOST_VERSION_NUMBER_AVAILABLE
32#endif
33
34#if BOOST_LANG_OBJC
35# define BOOST_LANG_OBJC_AVAILABLE
36#endif
37
38#define BOOST_LANG_OBJC_NAME "Objective-C"
39
40#endif
41
42#include <boost/predef/detail/test.h>
43BOOST_PREDEF_DECLARE_TEST(BOOST_LANG_OBJC,BOOST_LANG_OBJC_NAME)
44

source code of include/boost/predef/language/objc.h