Tor  0.4.7.0-alpha-dev
Macros
logic.h File Reference

Macros for comparing the boolean value of integers. More...

Go to the source code of this file.

Macros

#define bool_eq(a, b)   (!(a)==!(b))
 
#define bool_neq(a, b)   (!(a)!=!(b))
 

Detailed Description

Macros for comparing the boolean value of integers.

Definition in file logic.h.

Macro Definition Documentation

◆ bool_eq

#define bool_eq (   a,
 
)    (!(a)==!(b))

Macro: true if two values have the same boolean value.

Definition at line 16 of file logic.h.

◆ bool_neq

#define bool_neq (   a,
 
)    (!(a)!=!(b))

Macro: true if two values have different boolean values.

Definition at line 18 of file logic.h.