Go to the documentation of this file.
30 #ifndef _GLIBCXX_DEBUG_MACRO_SWITCH_H
31 #define _GLIBCXX_DEBUG_MACRO_SWITCH_H 1
57 using namespace std::__debug;
60 #ifndef _GLIBCXX_DEBUG
62 # define _GLIBCXX_DEBUG_ASSERT(_Condition)
63 # define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
64 # define _GLIBCXX_DEBUG_ONLY(_Statement) ;
65 # define __glibcxx_requires_cond(_Cond,_Msg)
66 # define __glibcxx_requires_valid_range(_First,_Last)
67 # define __glibcxx_requires_sorted(_First,_Last)
68 # define __glibcxx_requires_sorted_pred(_First,_Last,_Pred)
69 # define __glibcxx_requires_sorted_set(_First1,_Last1,_First2)
70 # define __glibcxx_requires_sorted_set_pred(_First1,_Last1,_First2,_Pred)
71 # define __glibcxx_requires_partitioned_lower(_First,_Last,_Value)
72 # define __glibcxx_requires_partitioned_upper(_First,_Last,_Value)
73 # define __glibcxx_requires_partitioned_lower_pred(_First,_Last,_Value,_Pred)
74 # define __glibcxx_requires_partitioned_upper_pred(_First,_Last,_Value,_Pred)
75 # define __glibcxx_requires_heap(_First,_Last)
76 # define __glibcxx_requires_heap_pred(_First,_Last,_Pred)
77 # define __glibcxx_requires_nonempty()
78 # define __glibcxx_requires_string(_String)
79 # define __glibcxx_requires_string_len(_String,_Len)
80 # define __glibcxx_requires_subscript(_N)
86 #define _GLIBCXX_DEBUG_ASSERT(_Condition) __glibcxx_assert(_Condition)
88 #ifdef _GLIBCXX_DEBUG_PEDANTIC
89 # define _GLIBCXX_DEBUG_PEDASSERT(_Condition) _GLIBCXX_DEBUG_ASSERT(_Condition)
91 # define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
94 # define _GLIBCXX_DEBUG_ONLY(_Statement) _Statement
96 # define __glibcxx_requires_cond(_Cond,_Msg) _GLIBCXX_DEBUG_VERIFY(_Cond,_Msg)
97 # define __glibcxx_requires_valid_range(_First,_Last) \
98 __glibcxx_check_valid_range(_First,_Last)
99 # define __glibcxx_requires_sorted(_First,_Last) \
100 __glibcxx_check_sorted(_First,_Last)
101 # define __glibcxx_requires_sorted_pred(_First,_Last,_Pred) \
102 __glibcxx_check_sorted_pred(_First,_Last,_Pred)
103 # define __glibcxx_requires_sorted_set(_First1,_Last1,_First2) \
104 __glibcxx_check_sorted_set(_First1,_Last1,_First2)
105 # define __glibcxx_requires_sorted_set_pred(_First1,_Last1,_First2,_Pred) \
106 __glibcxx_check_sorted_set_pred(_First1,_Last1,_First2,_Pred)
107 # define __glibcxx_requires_partitioned_lower(_First,_Last,_Value) \
108 __glibcxx_check_partitioned_lower(_First,_Last,_Value)
109 # define __glibcxx_requires_partitioned_upper(_First,_Last,_Value) \
110 __glibcxx_check_partitioned_upper(_First,_Last,_Value)
111 # define __glibcxx_requires_partitioned_lower_pred(_First,_Last,_Value,_Pred) \
112 __glibcxx_check_partitioned_lower_pred(_First,_Last,_Value,_Pred)
113 # define __glibcxx_requires_partitioned_upper_pred(_First,_Last,_Value,_Pred) \
114 __glibcxx_check_partitioned_upper_pred(_First,_Last,_Value,_Pred)
115 # define __glibcxx_requires_heap(_First,_Last) \
116 __glibcxx_check_heap(_First,_Last)
117 # define __glibcxx_requires_heap_pred(_First,_Last,_Pred) \
118 __glibcxx_check_heap_pred(_First,_Last,_Pred)
119 # define __glibcxx_requires_nonempty() __glibcxx_check_nonempty()
120 # define __glibcxx_requires_string(_String) __glibcxx_check_string(_String)
121 # define __glibcxx_requires_string_len(_String,_Len) \
122 __glibcxx_check_string_len(_String,_Len)
123 # define __glibcxx_requires_subscript(_N) __glibcxx_check_subscript(_N)
129 #endif // _GLIBCXX_DEBUG_MACRO_SWITCH_H