Files

72 lines
2.1 KiB
C++

/**
* @file include/ActivMiddleware/Config/Suffix.h
*
* @brief Configuration suffix.
*/
#if (!defined ACTIV_CONFIG_SUFFIX_H)
#define ACTIV_CONFIG_SUFFIX_H
#if (!defined ACTIV_PRINTF_FUNCTION)
/**
* @brief Specify that a function is a printf style function.
*
* @param type printf, scanf, strftime.
* @param formatIndex for static or global functions, the 1-based index of the parameter containing the format specifier string.
* For member functions, the 2-based index.
* @param firstParameterIndex for static or global functions, the 1-based index of the parameter containing the first value to be
* used by the format string. For member functions, the 2-based index.
* Use 0 if the function takes a va_list of parameters.
*/
#define ACTIV_PRINTF_FUNCTION(type, formatIndex, firstParameterIndex)
#endif // (!defined ACTIV_PRINTF_FUNCTION)
#if (!defined ACTIV_NULLPTR)
#if (!defined ACTIV_BOOST_NO_CXX11_NULLPTR)
#define ACTIV_NULLPTR nullptr
#else
#define ACTIV_NULLPTR 0
#endif
#endif
#if (!defined ACTIV_BOOST_NO_CXX11_FINAL)
#define ACTIV_FINAL final
#define ACTIV_OVERRIDE override
#else
#define ACTIV_OVERRIDE
#define ACTIV_FINAL
#endif
#if (!defined ACTIV_BOOST_NO_CXX11_DELETED_FUNCTIONS)
#define ACTIV_DELETE = delete
#else
#define ACTIV_DELETE
#endif
#if (!defined ACTIV_BOOST_NO_CXX11_RANGE_BASED_FOR)
#define ACTIV_FOREACH(var, container) for (var : container)
#define ACTIV_FOREACH_NONCOPYABLE(t)
#else
#include ACTIV_BOOST_INCLUDE(foreach.hpp)
#define ACTIV_FOREACH(var, container) ACTIV_BOOST_FOREACH(var, container)
#define ACTIV_FOREACH_NONCOPYABLE(t) \
namespace Boost { namespace foreach \
{ \
template<> \
struct is_noncopyable<t> : Boost::mpl::true_ {}; \
}}
#endif
#if (!defined ACTIV_BOOST_NO_CXX11_DECLTYPE)
#define ACTIV_DECLTYPE(t) decltype(t)
#else
#include ACTIV_BOOST_INCLUDE(typeof/typeof.hpp)
#define ACTIV_DECLTYPE(t) ACTIV_BOOST_TYPEOF(t)
#endif
#if (!defined ACTIV_PLATFORM_LINUX_HAS_MIN_GLIBC)
#define ACTIV_PLATFORM_LINUX_HAS_MIN_GLIBC(maj, min) 0
#endif
#endif // (!defined ACTIV_CONFIG_SUFFIX_H)