Go to the documentation of this file.
29#ifndef _GLIBCXX_DEBUG_ASSERTIONS_H
30#define _GLIBCXX_DEBUG_ASSERTIONS_H 1
34#ifndef _GLIBCXX_ASSERTIONS
35# define __glibcxx_requires_non_empty_range(_First,_Last)
36# define __glibcxx_requires_nonempty()
37# define __glibcxx_requires_subscript(_N)
41# define __glibcxx_requires_non_empty_range(_First,_Last) \
42 __glibcxx_assert(_First != _Last)
43# define __glibcxx_requires_subscript(_N) \
44 __glibcxx_assert(_N < this->size())
46# define __glibcxx_requires_nonempty() \
47 __glibcxx_assert(!this->empty())
50#if defined _GLIBCXX_DEBUG && _GLIBCXX_HOSTED
52# define _GLIBCXX_DEBUG_ASSERT(_Condition) __glibcxx_assert(_Condition)
54# ifdef _GLIBCXX_DEBUG_PEDANTIC
55# define _GLIBCXX_DEBUG_PEDASSERT(_Condition) _GLIBCXX_DEBUG_ASSERT(_Condition)
57# define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
60# define _GLIBCXX_DEBUG_ONLY(_Statement) _Statement
63# define _GLIBCXX_DEBUG_ASSERT(_Condition)
64# define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
65# define _GLIBCXX_DEBUG_ONLY(_Statement)