aboutsummaryrefslogtreecommitdiff
path: root/nix/boost/assert.hpp
blob: 754ebb954bce0b0e7474681f38d871d74eb18323 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
//  boost/assert.hpp - BOOST_ASSERT(expr)
//
//  Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
//
//  Permission to copy, use, modify, sell and distribute this software
//  is granted provided this copyright notice appears in all copies.
//  This software is provided "as is" without express or implied
//  warranty, and with no claim as to its suitability for any purpose.
//
//  Note: There are no include guards. This is intentional.
//
//  See http://www.boost.org/libs/utility/assert.html for documentation.
//

#undef BOOST_ASSERT

#if defined(BOOST_DISABLE_ASSERTS)

# define BOOST_ASSERT(expr) ((void)0)

#elif defined(BOOST_ENABLE_ASSERT_HANDLER)

#include <boost/current_function.hpp>

namespace boost
{

void assertion_failed(char const * expr, char const * function, char const * file, long line); // user defined

} // namespace boost

#define BOOST_ASSERT(expr) ((expr)? ((void)0): ::boost::assertion_failed(#expr, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))

#else
# include <assert.h>
# define BOOST_ASSERT(expr) assert(expr)
#endif
>packages: Use PACKAGE@VERSION syntax when reporting ambiguities....Ludovic Courtès 2017-02-27packages: Add 'search-auxiliary-file'....Alex Kost 2017-01-28Use 'mlambda' instead of 'memoize'....Ludovic Courtès 2017-01-28Add (guix memoization)....Ludovic Courtès 2016-09-20ui: Do not shadow '_' where it's used as a literal syntax match....Ludovic Courtès 2016-09-06packages: Add 'package-superseded' and associated support....Ludovic Courtès 2016-07-28packages: Add 'hidden-package'....Ludovic Courtès 2016-06-20packages: Export 'scheme-modules'....Ludovic Courtès