Hi people, I want to use boost_pp in my embedded systems development using avr-gcc (C language). I was trying to understand how boostpp works, but it looks fuzzy to me. Can you explain me what is this "0" in the line 40 from preprocessor/comparison/less.hpp: define BOOST_PP_LESS_D(d, x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D, 0 BOOST_PP_TUPLE_EAT_3)(d, x, y) http://www.boost.org/doc/libs/1_43_0/boost/preprocessor/comparison/less.hpp thanks Giordano
On 8/18/2011 4:10 PM, Giordano Bruno wrote:
Hi people, I want to use boost_pp in my embedded systems development using avr-gcc (C language). I was trying to understand how boostpp works, but it looks fuzzy to me.
Can you explain me what is this "0" in the line 40 from preprocessor/comparison/less.hpp:
define BOOST_PP_LESS_D(d, x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D, 0 BOOST_PP_TUPLE_EAT_3)(d, x, y)
The '0" means it returns 0 if the result of the BOOST_PP_NOT_EQUAL(x, y) is not true.
participants (2)
-
Edward Diener
-
Giordano Bruno