Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:26

0001 
0002 #ifndef BOOST_CONTRACT_DETAIL_DEBUG_HPP_
0003 #define BOOST_CONTRACT_DETAIL_DEBUG_HPP_
0004 
0005 // Copyright (C) 2008-2018 Lorenzo Caminiti
0006 // Distributed under the Boost Software License, Version 1.0 (see accompanying
0007 // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
0008 // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
0009 
0010 // Usually, never #defined (so "debug" assertions always in code).
0011 #ifdef BOOST_CONTRACT_DETAIL_NDEBUG
0012     #define BOOST_CONTRACT_DETAIL_DEBUG(cond) /* nothing */
0013 #else
0014     #include <boost/assert.hpp>
0015     // Extra parenthesis around BOOST_ASSERT to be safe because its is a macro.
0016     #define BOOST_CONTRACT_DETAIL_DEBUG(cond) (BOOST_ASSERT(cond))
0017 #endif
0018 
0019 #endif // #include guard
0020