Somewhat more C friendly. Some tests use templates.

[SVN r12553]
This commit is contained in:
Vesa Karvonen
2002-01-29 14:28:42 +00:00
parent df1244ba20
commit 9e361682af
8 changed files with 123 additions and 112 deletions

View File

@ -1,23 +1,25 @@
#ifndef BOOST_LIBS_PREPROCESSOR_TEST_TEST_HPP
#define BOOST_LIBS_PREPROCESSOR_TEST_TEST_HPP
// 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/cat.hpp>
// The TEST macro has been broken into two pieces to avoid
// double expansion:
// 1. as a macro argument
// 2. rescan
/* The TEST macro has been broken into two pieces to avoid
* double expansion:
* 1. as a macro argument
* 2. rescan
*/
#define TEST_B typedef int BOOST_PP_CAT(test_,__LINE__)[((
#define TEST_E )==1) ? 1 : -1];