logic.h 459 B

1234567891011121314
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef HAVE_TOR_LOGIC_H
  6. #define HAVE_TOR_LOGIC_H
  7. /** Macro: true if two values have the same boolean value. */
  8. #define bool_eq(a,b) (!(a)==!(b))
  9. /** Macro: true if two values have different boolean values. */
  10. #define bool_neq(a,b) (!(a)!=!(b))
  11. #endif