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
Generate cross-references in code snippets to the Guile manual....Ludovic Courtès 2020-10-17doc: Allow code snippets in the cookbook to link to the manual....Ludovic Courtès 2020-10-17doc: Move manual index creation to a separate derivation....Ludovic Courtès 2020-10-17doc: Remove 'build.scm' from the source of the manual....Ludovic Courtès 2020-09-04doc: Syntax highlighting now handles @var within @lisp....Ludovic Courtès 2020-05-25doc: Remove one use of 'file-append*'....Ludovic Courtès 2020-05-18doc: Inherit md5.scm fix in custom 'guile-lib' variant....Ludovic Courtès 2020-05-02doc: Fix building the cookbook....Björn Höfling 2020-04-21doc: Include *.json files in the source....Ludovic Courtès 2020-04-13doc: Improve anchor collection....Ludovic Courtès 2020-04-13doc: Avoid invalid 'match' pattern in 'syntax-highlighted-html'....Ludovic Courtès 2020-04-13doc: Emit hyperlinks in HTML output for @lisp snippets....Ludovic Courtès 2020-01-12doc: Make sure 'htmlxref.cnf' is honored....Ludovic Courtès 2019-11-28doc: Handle right arrows in 'syntax-highlighted-html'....Ludovic Courtès 2019-10-22doc: Use the right title in HTML indices for the cookbook....Ludovic Courtès 2019-10-21doc: More responsive online manual....Julien Lepiller 2019-10-21doc: Add support for "guix-cookbook.texi" to 'build.scm'....Ludovic Courtès 2019-09-25doc: Support paren matching via CSS hover....Ludovic Courtès 2019-09-07doc: Work around (htmlprag) parser issue....Ludovic Courtès 2019-09-07doc: Highlight Scheme syntax in the HTML output....Ludovic Courtès 2019-07-16doc: Add 'images' directory next to HTML pages....Ludovic Courtès 2019-07-15doc: Build a top-level index of the manuals....Ludovic Courtès 2019-07-15doc: Generalize build procedures of HTML indexes....Ludovic Courtès 2019-07-07build: Add 'doc/build.scm' to build on-line copies of the manual....Ludovic Courtès