mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-18 06:52:08 +02:00
Removed replacement rescan from tests.
Made requirements for BOOST_PP_CAT and BOOST_PP_STRINGIZE stronger. [SVN r12440]
This commit is contained in:
@ -14,5 +14,13 @@
|
||||
|
||||
#include <boost/preprocessor/cat.hpp>
|
||||
|
||||
#define TEST(C) typedef int BOOST_PP_CAT(test_,__LINE__)[((C)==1) ? 1 : -1];
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user