• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #ifndef BOOST_CONTRACT_DETAIL_NOOP_HPP_
3 #define BOOST_CONTRACT_DETAIL_NOOP_HPP_
4 
5 // Copyright (C) 2008-2018 Lorenzo Caminiti
6 // Distributed under the Boost Software License, Version 1.0 (see accompanying
7 // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
8 // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
9 
10 // Following must be expressions, not statements (as used with if.., etc.).
11 
12 #define BOOST_CONTRACT_DETAIL_NOOP ((void)0)
13 
14 // Following always compiles but never evaluates cond (so check correct syntax).
15 #define BOOST_CONTRACT_DETAIL_NOEVAL(cond) \
16     (true || (cond) ? BOOST_CONTRACT_DETAIL_NOOP : BOOST_CONTRACT_DETAIL_NOOP)
17 
18 #endif // #include guard
19 
20