From 717666e5d49442c0e7235fe662709bcd51360d1f Mon Sep 17 00:00:00 2001
From: Vesa Karvonen Obsolete. Use BOOST_PP_IF(). Revised Expands to Revised © Copyright Housemarque Oy 2002 Permission to copy, use, modify, sell and distribute this document is granted
+provided this copyright notice appears in all copies. This document is provided
+"as is" without express or implied warranty, and with no claim as to its suitability
+for any purpose.
-Prev Next Macros Headers
+Prev Next Macros Headers
#include <boost/preprocessor/if.hpp>
@@ -44,7 +44,7 @@
-Prev Next Macros Headers
+Prev Next Macros Headers
+
+
+
+
+
+
+
+
+
+ Boost.Preprocessor
+ Reference
+
+
+Prev Next Macros Headers
+
+
+#include <boost/preprocessor/if_then.hpp>
+
+
+
+#define BOOST_PP_IF_THEN(C,T)
+ T
if C != 0
and to nothing if C == 0
.
+
+Prev Next Macros Headers
+
+
+
-Prev Next Macros Headers
+Prev Next Macros Headers
#include <boost/preprocessor/inc.hpp>
@@ -44,7 +44,7 @@ supported.
Obsolete. Use BOOST_PP_INC().
Revised
diff --git a/doc/reference/index.htm b/doc/reference/index.htm index 2454a0a..2dde07f 100644 --- a/doc/reference/index.htm +++ b/doc/reference/index.htm @@ -49,6 +49,7 @@Expands to nothing if C != 0
and to MSG
if
C == 0
.
Obsolete. Use BOOST_PP_ASSERT_MSG().
*/ #define BOOST_PREPROCESSOR_ASSERT_MSG(C,MSG) BOOST_PP_ASSERT_MSG(C,MSG) diff --git a/include/boost/preprocessor/if_then.hpp b/include/boost/preprocessor/if_then.hpp new file mode 100644 index 0000000..725f242 --- /dev/null +++ b/include/boost/preprocessor/if_then.hpp @@ -0,0 +1,22 @@ +#ifndef BOOST_PREPROCESSOR_IF_THEN_HPP +#define BOOST_PREPROCESSOR_IF_THEN_HPP + +/* Copyright (C) 2002 + * Housemarque Oy + * http://www.housemarque.com + * + * Permission to copy, use, modify, sell and distribute this software is + * granted provided this copyright notice appears in all copies. This + * software is provided "as is" without express or implied warranty, and + * with no claim as to its suitability for any purpose. + * + * See http://www.boost.org for most recent version. + */ + +#includeExpands to T
if C != 0
and to nothing if C == 0
.