t_9_006.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. // syntax for defined operator
  9. // is either:
  10. //
  11. // defined X
  12. //
  13. // -or-
  14. //
  15. // defined(X)
  16. //
  17. // i.e. the parenthesis are optional (ala sizeof)
  18. #define X
  19. //R #line 26 "t_9_006.cpp"
  20. //R "X" is defined.
  21. #if defined(X)
  22. "X" is defined.
  23. #else
  24. "X" is not defined.
  25. #endif
  26. //R #line 34 "t_9_006.cpp"
  27. //R "X" is defined.
  28. #if defined X
  29. "X" is defined.
  30. #else
  31. "X" is not defined.
  32. #endif
  33. //H 10: t_9_006.cpp(21): #define
  34. //H 08: t_9_006.cpp(21): X=
  35. //H 10: t_9_006.cpp(25): #if
  36. //H 11: t_9_006.cpp(25): #if defined(X): 1
  37. //H 10: t_9_006.cpp(27): #else
  38. //H 10: t_9_006.cpp(33): #if
  39. //H 11: t_9_006.cpp(33): #if defined X: 1
  40. //H 10: t_9_006.cpp(35): #else