forked from boostorg/preprocessor
Preprocessor library is now C friendly.
[SVN r12552]
This commit is contained in:
@ -1,30 +1,31 @@
|
||||
#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.
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
/*! \file
|
||||
/** \file
|
||||
|
||||
<a href="../../../../boost/preprocessor/logical/and.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/logical/not.hpp>
|
||||
|
||||
//! Expands to the logical AND of the operands.
|
||||
/*!
|
||||
/** Expands to the logical AND of the operands.
|
||||
|
||||
For example, BOOST_PP_AND(0,5) expands to 0 (a single token).
|
||||
*/
|
||||
#define BOOST_PP_AND(X,Y) BOOST_PP_NOR(BOOST_PP_NOT(X),BOOST_PP_NOT(Y))
|
||||
|
||||
//! Obsolete. Use BOOST_PP_AND().
|
||||
/** Obsolete. Use BOOST_PP_AND(). */
|
||||
#define BOOST_PREPROCESSOR_AND(X,Y) BOOST_PP_AND(X,Y)
|
||||
#endif
|
||||
|
@ -1,28 +1,30 @@
|
||||
#ifndef BOOST_PREPROCESSOR_LOGICAL_BOOL_HPP
|
||||
#define BOOST_PREPROCESSOR_LOGICAL_BOOL_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.
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
/*! \file
|
||||
/** \file
|
||||
|
||||
<a href="../../../../boost/preprocessor/logical/bool.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
//! Expands to 0 if X == 0 and 1 if X != 0.
|
||||
/** Expands to 0 if X == 0 and 1 if X != 0. */
|
||||
#define BOOST_PP_BOOL(X) BOOST_PP_BOOL_DELAY(X)
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
// BOOL can be implemented in O(1) tokens using saturated ADD & SUB.
|
||||
// Unfortunately, it would result in significantly slower preprocessing.
|
||||
/* BOOL can be implemented in O(1) tokens using saturated ADD & SUB.
|
||||
* Unfortunately, it would result in significantly slower preprocessing.
|
||||
*/
|
||||
#define BOOST_PP_BOOL_DELAY(X) BOOST_PP_BOOL##X
|
||||
#define BOOST_PP_BOOL0 0
|
||||
#define BOOST_PP_BOOL1 1
|
||||
@ -155,6 +157,6 @@
|
||||
#define BOOST_PP_BOOL128 1
|
||||
#endif
|
||||
|
||||
//! Obsolete. Use BOOST_PP_BOOL().
|
||||
/** Obsolete. Use BOOST_PP_BOOL(). */
|
||||
#define BOOST_PREPROCESSOR_BOOL(X) BOOST_PP_BOOL(X)
|
||||
#endif
|
||||
|
@ -1,26 +1,27 @@
|
||||
#ifndef BOOST_PREPROCESSOR_LOGICAL_NOR_HPP
|
||||
#define BOOST_PREPROCESSOR_LOGICAL_NOR_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.
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
/*! \file
|
||||
/** \file
|
||||
|
||||
<a href="../../../../boost/preprocessor/logical/nor.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/logical/bool.hpp>
|
||||
|
||||
//! Expands to the logical NEITHER OR of the operands.
|
||||
/*!
|
||||
/** Expands to the logical NEITHER OR of the operands.
|
||||
|
||||
For example, BOOST_PP_NOR(0,5) expands to 0 (a single token).
|
||||
*/
|
||||
#define BOOST_PP_NOR(X,Y) BOOST_PP_NOR_BOOL(BOOST_PP_BOOL(X),BOOST_PP_BOOL(Y))
|
||||
@ -34,6 +35,6 @@ For example, BOOST_PP_NOR(0,5) expands to 0 (a single token).
|
||||
#define BOOST_PP_NOR_BOOL11 0
|
||||
#endif
|
||||
|
||||
//! Obsolete. Use BOOST_PP_NOR().
|
||||
/** Obsolete. Use BOOST_PP_NOR(). */
|
||||
#define BOOST_PREPROCESSOR_NOR(X,Y) BOOST_PP_NOR(X,Y)
|
||||
#endif
|
||||
|
@ -1,30 +1,31 @@
|
||||
#ifndef BOOST_PREPROCESSOR_LOGICAL_NOT_HPP
|
||||
#define BOOST_PREPROCESSOR_LOGICAL_NOT_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.
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
/*! \file
|
||||
/** \file
|
||||
|
||||
<a href="../../../../boost/preprocessor/logical/not.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/logical/nor.hpp>
|
||||
|
||||
//! Expands to the logical NOT of the operand.
|
||||
/*!
|
||||
/** Expands to the logical NOT of the operand.
|
||||
|
||||
For example, BOOST_PP_NOT(0) expands to 1 (a single token).
|
||||
*/
|
||||
#define BOOST_PP_NOT(X) BOOST_PP_NOR(X,X)
|
||||
|
||||
//! Obsolete. Use BOOST_PP_NOT().
|
||||
/** Obsolete. Use BOOST_PP_NOT(). */
|
||||
#define BOOST_PREPROCESSOR_NOT(X) BOOST_PP_NOT(X)
|
||||
#endif
|
||||
|
@ -1,30 +1,31 @@
|
||||
#ifndef BOOST_PREPROCESSOR_LOGICAL_OR_HPP
|
||||
#define BOOST_PREPROCESSOR_LOGICAL_OR_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.
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
/*! \file
|
||||
/** \file
|
||||
|
||||
<a href="../../../../boost/preprocessor/logical/or.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/logical/not.hpp>
|
||||
|
||||
//! Expands to the logical OR of the operands.
|
||||
/*!
|
||||
/** Expands to the logical OR of the operands.
|
||||
|
||||
For example, BOOST_PP_OR(0,2) expands to 1 (a single token).
|
||||
*/
|
||||
#define BOOST_PP_OR(X,Y) BOOST_PP_NOT(BOOST_PP_NOR(X,Y))
|
||||
|
||||
//! Obsolete. Use BOOST_PP_OR().
|
||||
/** Obsolete. Use BOOST_PP_OR(). */
|
||||
#define BOOST_PREPROCESSOR_OR(X,Y) BOOST_PP_OR(X,Y)
|
||||
#endif
|
||||
|
@ -1,30 +1,31 @@
|
||||
#ifndef BOOST_PREPROCESSOR_LOGICAL_XOR_HPP
|
||||
#define BOOST_PREPROCESSOR_LOGICAL_XOR_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.
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
/*! \file
|
||||
/** \file
|
||||
|
||||
<a href="../../../../boost/preprocessor/logical/xor.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/logical/and.hpp>
|
||||
|
||||
//! Expands to the logical EXCLUSIVE OR of the operands.
|
||||
/*!
|
||||
/** Expands to the logical EXCLUSIVE OR of the operands.
|
||||
|
||||
For example, BOOST_PP_XOR(1,2) expands to 0 (a single token).
|
||||
*/
|
||||
#define BOOST_PP_XOR(X,Y) BOOST_PP_NOR(BOOST_PP_NOR(X,Y),BOOST_PP_AND(X,Y))
|
||||
|
||||
//! Obsolete. Use BOOST_PP_XOR().
|
||||
/** Obsolete. Use BOOST_PP_XOR(). */
|
||||
#define BOOST_PREPROCESSOR_XOR(X,Y) BOOST_PP_XOR(X,Y)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user