~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to libs/boost-lib/boost/assert.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//  boost/assert.hpp - BOOST_ASSERT(expr)
3
3
//
4
4
//  Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
 
5
//  Copyright (c) 2007 Peter Dimov
5
6
//
6
7
// Distributed under the Boost Software License, Version 1.0. (See
7
8
// accompanying file LICENSE_1_0.txt or copy at
35
36
# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same
36
37
# define BOOST_ASSERT(expr) assert(expr)
37
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