mirror of
https://github.com/boostorg/wave.git
synced 2026-01-19 04:42:16 +00:00
* Introduce support for C++20 preprocessor features - add __VA_OPT__ feature to variadic macros - allow supplying 0 variadic arguments in more cases - add related unit tests
17 lines
680 B
C++
17 lines
680 B
C++
/*=============================================================================
|
|
Boost.Wave: A Standard compliant C++ preprocessor library
|
|
http://www.boost.org/
|
|
|
|
Copyright (c) 2020 Jeff Trull. Distributed under the Boost
|
|
Software License, Version 1.0. (See accompanying file
|
|
LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
=============================================================================*/
|
|
|
|
//O --c++20
|
|
//O -Werror
|
|
|
|
// test that __VA_OPT__ cannot be used in a macro without variable args
|
|
|
|
//E t_8_007.cpp(16): error: __VA_OPT__ can only appear in the expansion of a C++20 variadic macro: FOO
|
|
#define FOO(BAR) BAR __VA_OPT__(,) BAR
|