linuxcnc/docs/man/man3/hal_bool.3hal
Jeff Epler 606d8328f6 hal: Introduce hal_bool, use it for hal_bit_t
The C99 _Bool type and the C++ bool type have an advantage over other
integral types: they only have two distinct values.  Expressions like
'b1 == b2', 'b1 << 3' and 'b1 ^ b2' behave like you would expect a
boolean type to behave, rather than having the problems that result from
using an integral type with more than two distinct values.
2011-11-17 15:05:56 -06:00

1 line
25 B
Text