1 | // -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
---|
2 | // ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab:
|
---|
3 |
|
---|
4 | // g++ -Wall -Wextra -Werror -g -O0 -save-temps -o test1.o -c -fpic test1.cpp
|
---|
5 |
|
---|
6 | #include <boost/preprocessor/seq/for_each_i.hpp>
|
---|
7 | #include <boost/preprocessor/tuple/to_seq.hpp>
|
---|
8 | #include <cstdio>
|
---|
9 |
|
---|
10 | #define TEST1_PROCESSING(R, DATA, I, TYPE) \
|
---|
11 | ::printf("you should not be seeing this string: " \
|
---|
12 | #R "," #DATA "," #I "," #TYPE);
|
---|
13 | #define TEST1 \
|
---|
14 | BOOST_PP_SEQ_FOR_EACH_I(\
|
---|
15 | TEST1_PROCESSING, _,\
|
---|
16 | BOOST_PP_TUPLE_TO_SEQ(0, ())\
|
---|
17 | )
|
---|
18 |
|
---|
19 | int main()
|
---|
20 | {
|
---|
21 | TEST1
|
---|
22 | return 0;
|
---|
23 | }
|
---|