forked from boostorg/preprocessor
Somewhat more C friendly. Some tests use templates.
[SVN r12553]
This commit is contained in:
@ -1,34 +1,36 @@
|
||||
// Copyright (C) 2001
|
||||
// Housemarque Oy
|
||||
// http://www.housemarque.com
|
||||
//
|
||||
// Permission to copy, use, modify, sell and distribute this software is
|
||||
// granted provided this copyright notice appears in all copies. This
|
||||
// software is provided "as is" without express or implied warranty, and
|
||||
// with no claim as to its suitability for any purpose.
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
/* Copyright (C) 2001
|
||||
* Housemarque Oy
|
||||
* http://www.housemarque.com
|
||||
*
|
||||
* Permission to copy, use, modify, sell and distribute this software is
|
||||
* granted provided this copyright notice appears in all copies. This
|
||||
* software is provided "as is" without express or implied warranty, and
|
||||
* with no claim as to its suitability for any purpose.
|
||||
*
|
||||
* See http://www.boost.org for most recent version.
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/enum_params.hpp>
|
||||
#include <boost/preprocessor/enum_shifted_params.hpp>
|
||||
#include <boost/preprocessor/inc.hpp>
|
||||
#include <boost/preprocessor/repeat_2nd.hpp>
|
||||
|
||||
// ***
|
||||
/* *** */
|
||||
|
||||
// RATIONALE:
|
||||
// - BOOST_PP_REPEAT, BOOST_PP_REPEAT_2ND, ... must work
|
||||
// together.
|
||||
// - BOOST_PP_REPEAT is already tested with
|
||||
// BOOST_PP_ENUM_PARAMS.
|
||||
// - The tested repeat count should exceed imaginable usage.
|
||||
// - Testing the generation of is_function_helper()s upto 40 arguments should
|
||||
// be sufficient in this case. Many compilers may fail the repetition tests
|
||||
// (at least with higher counts). However, the primary purpose of the
|
||||
// repetition primitives is to enable configurability with reasonable
|
||||
// defaults, and not necessarily "the most impressive repetition".
|
||||
// - ENUM_SHIFTED_PARAMS must be tested so that the shifted range is shown to
|
||||
// be correct.
|
||||
/* RATIONALE:
|
||||
* - BOOST_PP_REPEAT, BOOST_PP_REPEAT_2ND, ... must work
|
||||
* together.
|
||||
* - BOOST_PP_REPEAT is already tested with
|
||||
* BOOST_PP_ENUM_PARAMS.
|
||||
* - The tested repeat count should exceed imaginable usage.
|
||||
* - Testing the generation of is_function_helper()s upto 40 arguments should
|
||||
* be sufficient in this case. Many compilers may fail the repetition tests
|
||||
* (at least with higher counts). However, the primary purpose of the
|
||||
* repetition primitives is to enable configurability with reasonable
|
||||
* defaults, and not necessarily "the most impressive repetition".
|
||||
* - ENUM_SHIFTED_PARAMS must be tested so that the shifted range is shown to
|
||||
* be correct.
|
||||
*/
|
||||
|
||||
#ifndef IS_FUNCTION_HELPER_TEST_MAX
|
||||
#define IS_FUNCTION_HELPER_TEST_MAX 40
|
||||
|
Reference in New Issue
Block a user