From 0a06a083afb39e8710d7ca0a8830effc1eecfa78 Mon Sep 17 00:00:00 2001 From: Lukasz Czajczyk Date: Sat, 20 Feb 2021 13:19:06 +0100 Subject: [PATCH] Additional macros (#3106) --- cfg/boost.cfg | 3 +++ test/cfg/boost.cpp | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/cfg/boost.cfg b/cfg/boost.cfg index f1c21df92..ded96a399 100644 --- a/cfg/boost.cfg +++ b/cfg/boost.cfg @@ -13,6 +13,7 @@ + @@ -63,6 +64,8 @@ + + diff --git a/test/cfg/boost.cpp b/test/cfg/boost.cpp index 0ef74ac71..4ba39d50d 100644 --- a/test/cfg/boost.cpp +++ b/test/cfg/boost.cpp @@ -81,3 +81,15 @@ void throwexception2(int * buf) BOOST_THROW_EXCEPTION(std::bad_alloc()); *buf = 0; } + +void macros() +{ + #define DECL(z, n, text) text ## n = n; + BOOST_PP_REPEAT(5, DECL, int x) + + BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_errc) + { + no_state + } + BOOST_SCOPED_ENUM_DECLARE_END(future_errc) +}