More C++0x feature tests
[sol.git] / sol / config / compiler / gcc.hpp
blob2b74e3f421dd1c3b690f66b9b821320066cfae4e
1 #if !defined(sol_config_compiler_gcc_hpp_included)
2 #define sol_config_compiler_gcc_hpp_included
3 /// \addtogroup sol_config
4 /// \{
7 /**
8 * \file sol/config/compiler/gcc.hpp
9 * \brief gcc-specific compiler configuration
10 * \author Sven Suursoho
14 #include <sol/version.hpp>
18 // set compiler name and version
21 #define SOL_COMPILER_GNU 1
23 #define SOL_COMPILER_NAME "g++"
25 #define SOL_COMPILER_VERSION \
26 SOL_MAKE_VERSION(__GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__)
30 // C++0x features
33 #if SOL_COMPILER_VERSION >= SOL_MAKE_VERSION(4,3,0)
34 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
35 #define SOL_HAS_STATIC_ASSERT
36 #define SOL_HAS_VARIADIC_TEMPLATES
37 #define SOL_HAS_DECLTYPE
38 #endif
39 #endif
42 /// \}
43 #endif // sol_config_compiler_gcc_hpp_included