Go to the documentation of this file.
29#ifndef _GLIBCXX_DEBUG_ASSERTIONS_H
30#define _GLIBCXX_DEBUG_ASSERTIONS_H 1
36# define __glibcxx_requires_non_empty_range(_First,_Last) \
37 __glibcxx_assert(_First != _Last)
38# define __glibcxx_requires_subscript(_N) \
39 __glibcxx_assert(_N < this->size())
41# define __glibcxx_requires_nonempty() \
42 __glibcxx_assert(!this->empty())
44# define __glibcxx_requires_non_empty_range(_First,_Last) \
45 __glibcxx_check_non_empty_range(_First,_Last)
46# define __glibcxx_requires_nonempty() \
47 __glibcxx_check_nonempty()
48# define __glibcxx_requires_subscript(_N) \
49 __glibcxx_check_subscript(_N)
52#if defined _GLIBCXX_DEBUG && _GLIBCXX_HOSTED
54# define _GLIBCXX_DEBUG_ASSERT(_Condition) __glibcxx_assert(_Condition)
56# ifdef _GLIBCXX_DEBUG_PEDANTIC
57# define _GLIBCXX_DEBUG_PEDASSERT(_Condition) _GLIBCXX_DEBUG_ASSERT(_Condition)
59# define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
62# define _GLIBCXX_DEBUG_ONLY(_Statement) _Statement
65# define _GLIBCXX_DEBUG_ASSERT(_Condition)
66# define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
67# define _GLIBCXX_DEBUG_ONLY(_Statement)