Back to Arangodb

BOOST_PP_LPAREN

3rdParty/boost/1.78.0/libs/preprocessor/doc/ref/lparen.html

3.12.9.11.0 KB
Original Source

The BOOST_PP_LPAREN macro expands to a left parenthesis.

Usage

BOOST_PP_LPAREN ()

Remarks

The preprocessor interprets parentheses as delimiters in macro invocations. Because of this, parentheses require special handling.

See Also

Requirements

Header: <boost/preprocessor/punctuation/paren.hpp>

Sample Code

#include <[boost/preprocessor/punctuation/paren.hpp](../headers/punctuation/paren.html)>

#define X(x) x
#define MACRO(p, x) X p x )

MACRO([BOOST\_PP\_LPAREN](lparen.html)(), abc) // expands to abc

#define Y(x)

MACRO((10) Y[BOOST\_PP\_LPAREN](lparen.html)(), result) // expands to 10

Copyright Housemarque Oy 2002 Copyright Paul Mensonides 2002

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)