t_1_031.cpp 1.1 KB

123456789101112131415161718192021222324252627
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. http://www.boost.org/
  4. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying file
  6. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. // Tests macro expansion using variadic macros
  9. //O --variadics
  10. #define is_empty(...) is_empty_ ## __VA_ARGS__ ## other
  11. //R #line 17 "t_1_031.cpp"
  12. is_empty( + ) //R is_empty_+other
  13. is_empty( +text ) //R is_empty_+textother
  14. //H 10: t_1_031.cpp(14): #define
  15. //H 08: t_1_031.cpp(14): is_empty(...)=is_empty_ ## __VA_ARGS__ ## other
  16. //H 00: t_1_031.cpp(17): is_empty( + ), [t_1_031.cpp(14): is_empty(...)=is_empty_ ## __VA_ARGS__ ## other]
  17. //H 02: is_empty_+other
  18. //H 03: is_empty_+other
  19. //H 00: t_1_031.cpp(18): is_empty( +text ), [t_1_031.cpp(14): is_empty(...)=is_empty_ ## __VA_ARGS__ ## other]
  20. //H 02: is_empty_+textother
  21. //H 03: is_empty_+textother