Files
boost_preprocessor/include/boost/preprocessor/logical/and.hpp

27 lines
846 B
C++
Raw Normal View History

2001-11-25 18:32:11 +00:00
#ifndef BOOST_PREPROCESSOR_LOGICAL_AND_HPP
#define BOOST_PREPROCESSOR_LOGICAL_AND_HPP
/* Copyright (C) 2001
* 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.
*/
2001-11-25 18:32:11 +00:00
#include <boost/preprocessor/logical/not.hpp>
2001-11-25 18:32:11 +00:00
2002-01-31 14:21:31 +00:00
/** <P>Expands to the logical AND of the operands.</P>
2002-01-31 14:21:31 +00:00
<P>For example, BOOST_PP_AND(0,5) expands to 0 (a single token).</P>
*/
#define BOOST_PP_AND(X,Y) BOOST_PP_NOR(BOOST_PP_NOT(X),BOOST_PP_NOT(Y))
2002-01-31 14:21:31 +00:00
/** <P>Obsolete. Use BOOST_PP_AND().</P> */
#define BOOST_PREPROCESSOR_AND(X,Y) BOOST_PP_AND(X,Y)
2001-11-25 18:32:11 +00:00
#endif