objc.h 960 B

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