C++ Boost

Boost.Preprocessor

Header <boost/preprocessor/logical/bool.hpp>


Prev Next Macros Headers

#define BOOST_PP_BOOL(X)

Expands to 0 if X == 0 and 1 if X != 0.

X must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].

For example, BOOST_PP_BOOL(3) expands to 1.


Prev Next Macros Headers

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.