Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:55

0001 
0002 // (C) Copyright Tobias Schwinger
0003 //
0004 // Use modification and distribution are subject to the boost Software License,
0005 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
0006 
0007 //------------------------------------------------------------------------------
0008 
0009 #ifndef BOOST_FT_CONFIG_HPP_INCLUDED
0010 #define BOOST_FT_CONFIG_HPP_INCLUDED
0011 
0012 #include <boost/function_types/config/compiler.hpp>
0013 #include <boost/function_types/config/cc_names.hpp>
0014 
0015 // maximum allowed arity
0016 #ifndef BOOST_FT_MAX_ARITY
0017 #define BOOST_FT_MAX_ARITY 20
0018 #endif
0019 
0020 // the most common calling conventions for x86 architecture can be enabled at
0021 // once in the compiler config
0022 #ifdef BOOST_FT_COMMON_X86_CCs
0023 #   ifndef BOOST_FT_CC_CDECL
0024 #   define BOOST_FT_CC_CDECL BOOST_FT_COMMON_X86_CCs
0025 #   endif
0026 #   ifndef BOOST_FT_CC_STDCALL
0027 #   define BOOST_FT_CC_STDCALL non_variadic|BOOST_FT_COMMON_X86_CCs
0028 #   endif
0029 #   ifndef BOOST_FT_CC_FASTCALL
0030 #   define BOOST_FT_CC_FASTCALL non_variadic|BOOST_FT_COMMON_X86_CCs
0031 #   endif
0032 #endif
0033 
0034 // where to place the cc specifier (the common way)
0035 #ifndef BOOST_FT_SYNTAX
0036 #   define BOOST_FT_SYNTAX(result,lparen,cc_spec,type_mod,name,rparen) \
0037                         result() lparen() cc_spec() type_mod() name() rparen()
0038 #endif
0039 
0040 // param for nullary functions
0041 // set to "void" for compilers that require nullary functions to read 
0042 // "R (void)" in template partial specialization
0043 #ifndef BOOST_FT_NULLARY_PARAM
0044 #define BOOST_FT_NULLARY_PARAM 
0045 #endif
0046 
0047 // there is a pending defect report on cv qualified function types, so support
0048 // for these types is disabled, unless for compilers where it's known to work
0049 #ifndef BOOST_FT_NO_CV_FUNC_SUPPORT
0050 #define BOOST_FT_NO_CV_FUNC_SUPPORT 1
0051 #endif
0052 
0053 // full preprocessing implies preprocessing of the ccs
0054 #if defined(BOOST_FT_PREPROCESSING_MODE) && !defined(BOOST_FT_CC_PREPROCESSING)
0055 #   define BOOST_FT_CC_PREPROCESSING 1
0056 #endif
0057 
0058 #endif
0059