Compile time configuration: drop untested combos
[sol.git] / sol / config / compiler / gcc.hpp
blob2001d46161597a9cfcfc3d03d8e2e581f3b98b15
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 // static_assert
33 #if SOL_COMPILER_VERSION >= SOL_MAKE_VERSION(4,3,0)
34 #if defined(__GXX_EXPERIMENTAL_CXX0X__)
35 #define SOL_HAS_STATIC_ASSERT
36 #endif
37 #endif
40 /// \}
41 #endif // sol_config_compiler_gcc_hpp_included