mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-18 06:52:08 +02:00
Somewhat more C friendly. Some tests use templates.
[SVN r12553]
This commit is contained in:
@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user