|
// tests qualified names as arguments to operator defined
#define A() 1
////////////////////////////////////////////////////////////////////////////////
#region region_A
// test, whether global macros are (in)visible here
# if defined(A)
# error "Macro 'A' shouldn't be visible here!"
# endif
# if !defined(::A)
# error "Macro '::A' should be visible here!"
# endif
# define B() 2
// nested region
# region region_B
# define C() 3
# if !defined(C)
# error "Macro 'C' should be visible here!"
# endif
# if !defined(::region_A::region_B::C)
# error "Macro '::region_A::region_B::C' should be visible here!"
# endif
# endregion
#endregion // region_A
# if defined(region_B::C)
# error "Macro 'region_B::C' shouldn't be visible here!"
# endif
# if !defined(region_A::region_B::C)
# error "Macro 'region_A::region_B::C' should be visible here!"
# endif
# if !defined(::region_A::region_B::C)
# error "Macro '::region_A::region_B::C' should be visible here!"
# endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Actively involved in Boost and the development of the Spirit parser construction framework.