~ubuntu-branches/ubuntu/raring/clucene-core/raring-proposed

« back to all changes in this revision

Viewing changes to src/ext/boost/assert.hpp

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-08-11 09:33:38 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120811093338-fgrx41ftqew3qt6a
Tags: 2.3.3.4-1
* New upstream release (Closes: #661703).
* Convert package to multiarch.
* Drop obsolete patches:
  - 01_add_missing_include_bug505667.diff
  - 02_posixness_fix_bug530308.diff
* Add patches:
  - Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
  - Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
  - Install-contribs-lib.patch
  - multiarch.patch
* Update debian/compat: bump to 8.
* Update debian/control:
  - update build dependencies (add cmake, libboost-dev and libz-dev).
  - bump Standards-Version to 3.9.3.
  - rename packages due to ABI bump: libclucene0ldbl -> libclucene-core1.
  - add libclucene-contribs1 package.
* Update debian/rules:
  - rewrite to use CMake.
  - add multiarch support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//  boost/assert.hpp - BOOST_ASSERT(expr)
 
3
//
 
4
//  Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
 
5
//  Copyright (c) 2007 Peter Dimov
 
6
//
 
7
// Distributed under the Boost Software License, Version 1.0. (See
 
8
// accompanying file LICENSE_1_0.txt or copy at
 
9
// http://www.boost.org/LICENSE_1_0.txt)
 
10
//
 
11
//  Note: There are no include guards. This is intentional.
 
12
//
 
13
//  See http://www.boost.org/libs/utility/assert.html for documentation.
 
14
//
 
15
 
 
16
#undef BOOST_ASSERT
 
17
 
 
18
#if defined(BOOST_DISABLE_ASSERTS)
 
19
 
 
20
# define BOOST_ASSERT(expr) ((void)0)
 
21
 
 
22
#elif defined(BOOST_ENABLE_ASSERT_HANDLER)
 
23
 
 
24
#include <boost/current_function.hpp>
 
25
 
 
26
namespace boost
 
27
{
 
28
 
 
29
void assertion_failed(char const * expr, char const * function, char const * file, long line); // user defined
 
30
 
 
31
} // namespace boost
 
32
 
 
33
#define BOOST_ASSERT(expr) ((expr)? ((void)0): ::boost::assertion_failed(#expr, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))
 
34
 
 
35
#else
 
36
# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same
 
37
# define BOOST_ASSERT(expr) assert(expr)
 
38
#endif
 
39
 
 
40
#undef BOOST_VERIFY
 
41
 
 
42
#if defined(BOOST_DISABLE_ASSERTS) || ( !defined(BOOST_ENABLE_ASSERT_HANDLER) && defined(NDEBUG) )
 
43
 
 
44
# define BOOST_VERIFY(expr) ((void)(expr))
 
45
 
 
46
#else
 
47
 
 
48
# define BOOST_VERIFY(expr) BOOST_ASSERT(expr)
 
49
 
 
50
#endif