1 /*============================================================================= 2 Boost.Wave: A Standard compliant C++ preprocessor library 3 http://www.boost.org/ 4 5 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost 6 Software License, Version 1.0. (See accompanying file 7 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 =============================================================================*/ 9 10 // syntax for defined operator 11 // is either: 12 // 13 // defined X 14 // 15 // -or- 16 // 17 // defined(X) 18 // 19 // i.e. the parenthesis are optional (ala sizeof) 20 21 #define X 22 23 //R #line 26 "t_9_006.cpp" 24 //R "X" is defined. 25 #if defined(X) 26 "X" is defined. 27 #else 28 "X" is not defined. 29 #endif 30 31 //R #line 34 "t_9_006.cpp" 32 //R "X" is defined. 33 #if defined X 34 "X" is defined. 35 #else 36 "X" is not defined. 37 #endif 38 39 //H 10: t_9_006.cpp(21): #define 40 //H 08: t_9_006.cpp(21): X= 41 //H 10: t_9_006.cpp(25): #if 42 //H 11: t_9_006.cpp(25): #if defined(X): 1 43 //H 10: t_9_006.cpp(27): #else 44 //H 10: t_9_006.cpp(33): #if 45 //H 11: t_9_006.cpp(33): #if defined X: 1 46 //H 10: t_9_006.cpp(35): #else 47