mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-17 22:42:08 +02:00
29 lines
805 B
C++
29 lines
805 B
C++
#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.
|
|
*/
|
|
|
|
#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
|
|
*/
|
|
#define TEST_B typedef int BOOST_PP_CAT(test_,__LINE__)[((
|
|
#define TEST_E )==1) ? 1 : -1];
|
|
|
|
#define MACRO(X) X
|
|
#define MACRO_ARGS(X) (X)
|
|
#endif
|