BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls_asserttest_macroreset.h
Go to the documentation of this file.
1/// @file bsls_asserttest_macroreset.h
2///
3/// The content of this file has been pre-processed for Doxygen.
4///
5
6
7// bsls_asserttest_macroreset.h -*-C++-*-
8#ifndef INCLUDED_BSLS_ASSERTTEST_MACRORESET
9#define INCLUDED_BSLS_ASSERTTEST_MACRORESET
10
11#include <bsls_ident.h>
12BSLS_IDENT("$Id: $")
13
14/// @defgroup bsls_asserttest_macroreset bsls_asserttest_macroreset
15/// @brief Undefine macros related to `bsls_asserttest.h`.
16/// @addtogroup bsl
17/// @{
18/// @addtogroup bsls
19/// @{
20/// @addtogroup bsls_asserttest_macroreset
21/// @{
22///
23/// <h1> Outline </h1>
24/// * <a href="#bsls_asserttest_macroreset-purpose"> Purpose</a>
25/// * <a href="#bsls_asserttest_macroreset-description"> Description </a>
26/// * <a href="#bsls_asserttest_macroreset-usage"> Usage </a>
27///
28/// # Purpose {#bsls_asserttest_macroreset-purpose}
29/// Undefine macros related to `bsls_asserttest.h`.
30///
31/// # Description {#bsls_asserttest_macroreset-description}
32/// This component provides a header that is *included* to undefine
33/// all macros defined in `bsls_asserttest.h`, `bsls_assert.h`, and
34/// `bsls_review.h`; it is designed to be *re*-includable. This is for the use
35/// of the @ref bsls_assertest test driver to enable it to re-include the
36/// `bsls_asserttest.h` header with different input macros and verify that they
37/// output the correct resulting macro definitions.
38///
39/// ## Usage {#bsls_asserttest_macroreset-usage}
40///
41///
42/// To undefine all macros defined in `bsls_asserttest.h`, `bsls_assert.h` and
43/// `bsls_review.h`, first disable the header include guard for this header
44/// (`bsls_asserttest_macroreset.h`):
45/// @code
46/// #undef INCLUDED_BSLS_ASSERTTEST_MACRORESET
47/// @endcode
48/// Then re-include this header, which will undefine the macros that were
49/// defined by `bsls_asserttest.h`, `bsls_assert.h` and `bsls_review.h`:
50/// @code
51/// #include <bsls_asserttest_macroreset.h>
52/// @endcode
53/// Then define any macros that control the behaviors of `bsls_asserttest.h`,
54/// `bsls_assert.h` and `bsls_review.h` for this particular test, then
55/// re-include `bsls_asserttest.h`:
56/// @code
57/// #include <bsls_asserttest.h>
58/// @endcode
59/// @}
60/** @} */
61/** @} */
62
63/** @addtogroup bsl
64 * @{
65 */
66/** @addtogroup bsls
67 * @{
68 */
69/** @addtogroup bsls_asserttest_macroreset
70 * @{
71 */
72
73// Undefine the external header guards so that the component headers can be
74// re-included and re-evaluated.
75#undef INCLUDED_BSLS_REVIEW
76#undef INCLUDED_BSLS_ASSERT
77#undef INCLUDED_BSLS_ASSERTTEST
78
79// Undefine the build mode so it can be set to whatever the test wants to
80// verify next.
81#undef BDE_BUILD_TARGET_DBG
82#undef BDE_BUILD_TARGET_OPT
83#undef BDE_BUILD_TARGET_SAFE
84#undef BDE_BUILD_TARGET_SAFE_2
85
86// Undefine the explicit review level and assert level macros.
87#undef BSLS_REVIEW_LEVEL_NONE
88#undef BSLS_REVIEW_LEVEL_REVIEW
89#undef BSLS_REVIEW_LEVEL_REVIEW_OPT
90#undef BSLS_REVIEW_LEVEL_REVIEW_SAFE
91
92#undef BSLS_ASSERT_LEVEL_ASSERT
93#undef BSLS_ASSERT_LEVEL_ASSERT_OPT
94#undef BSLS_ASSERT_LEVEL_ASSERT_SAFE
95#undef BSLS_ASSERT_LEVEL_ASSUME_ASSERT
96#undef BSLS_ASSERT_LEVEL_ASSUME_OPT
97#undef BSLS_ASSERT_LEVEL_ASSUME_SAFE
98#undef BSLS_ASSERT_LEVEL_NONE
99
100// Undefine the macros actually defined by 'bsls_review.h'.
101#undef BSLS_REVIEW
102#undef BSLS_REVIEW_REVIEW_IMP
103#undef BSLS_REVIEW_REVIEW_COUNT_IMP
104#undef BSLS_REVIEW_DISABLED_IMP
105#undef BSLS_REVIEW_INVOKE
106#undef BSLS_REVIEW_IS_ACTIVE
107#undef BSLS_REVIEW_IS_USED
108#undef BSLS_REVIEW_OPT
109#undef BSLS_REVIEW_OPT_IS_ACTIVE
110#undef BSLS_REVIEW_OPT_IS_USED
111#undef BSLS_REVIEW_SAFE
112#undef BSLS_REVIEW_SAFE_IS_ACTIVE
113#undef BSLS_REVIEW_SAFE_IS_USED
114
115// Undefine other control macros
116#undef BSLS_REVIEW_VALIDATE_DISABLED_MACROS
117#undef BSLS_ASSERT_VALIDATE_DISABLED_MACROS
118#undef BSLS_ASSERTTEST_VALIDATE_DISABLED_MACROS
119
120// Undefine the macros actually defined by 'bsls_assert.h'.
121#undef BSLS_ASSERT
122#undef BSLS_ASSERT_ASSERT
123#undef BSLS_ASSERT_ASSUME_IMP
124#undef BSLS_ASSERT_ASSERT_IMP
125#undef BSLS_ASSERT_DISABLED_IMP
126#undef BSLS_ASSERT_INVOKE
127#undef BSLS_ASSERT_INVOKE_NORETURN
128#undef BSLS_ASSERT_IS_ACTIVE
129#undef BSLS_ASSERT_IS_ASSUMED
130#undef BSLS_ASSERT_IS_REVIEW
131#undef BSLS_ASSERT_IS_USED
132#undef BSLS_ASSERT_OPT
133#undef BSLS_ASSERT_OPT_IS_ACTIVE
134#undef BSLS_ASSERT_OPT_IS_ASSUMED
135#undef BSLS_ASSERT_OPT_IS_REVIEW
136#undef BSLS_ASSERT_OPT_IS_USED
137#undef BSLS_ASSERT_SAFE
138#undef BSLS_ASSERT_SAFE_IS_ACTIVE
139#undef BSLS_ASSERT_SAFE_IS_ASSUMED
140#undef BSLS_ASSERT_SAFE_IS_REVIEW
141#undef BSLS_ASSERT_SAFE_IS_USED
142
143// Undefine the macros actually defined by 'bsls_asserttest.h'.
144#undef BSLS_ASSERTTEST_SAFE_2_BUILD_FLAG
145#undef BSLS_ASSERTTEST_ASSERT_ACTIVE_FLAG
146#undef BSLS_ASSERTTEST_ASSERT_OPT_ACTIVE_FLAG
147#undef BSLS_ASSERTTEST_ASSERT_SAFE_ACTIVE_FLAG
148
149#undef BSLS_ASSERTTEST_ASSERT_FAIL
150#undef BSLS_ASSERTTEST_ASSERT_FAIL_RAW
151#undef BSLS_ASSERTTEST_ASSERT_OPT_FAIL
152#undef BSLS_ASSERTTEST_ASSERT_OPT_FAIL_RAW
153#undef BSLS_ASSERTTEST_ASSERT_SAFE_FAIL
154#undef BSLS_ASSERTTEST_ASSERT_SAFE_FAIL_RAW
155#undef BSLS_ASSERTTEST_ASSERT_INVOKE_FAIL
156#undef BSLS_ASSERTTEST_ASSERT_INVOKE_FAIL_RAW
157
158#undef BSLS_ASSERTTEST_ASSERT_PASS
159#undef BSLS_ASSERTTEST_ASSERT_PASS_RAW
160#undef BSLS_ASSERTTEST_ASSERT_OPT_PASS
161#undef BSLS_ASSERTTEST_ASSERT_OPT_PASS_RAW
162#undef BSLS_ASSERTTEST_ASSERT_SAFE_PASS
163#undef BSLS_ASSERTTEST_ASSERT_SAFE_PASS_RAW
164#undef BSLS_ASSERTTEST_ASSERT_INVOKE_PASS
165#undef BSLS_ASSERTTEST_ASSERT_INVOKE_PASS_RAW
166
167#undef BSLS_ASSERTTEST_BRUTE_FORCE_IMP
168#undef BSLS_ASSERTTEST_BRUTE_FORCE_IMP_RAW
169#undef BSLS_ASSERTTEST_DISABLED_IMP
170#undef BSLS_ASSERTTEST_IS_ACTIVE
171
172#undef BSLS_ASSERTTEST_CAN_CHECK_LEVELS
173#undef BSLS_ASSERTTEST_CHECK_LEVEL
174#undef BSLS_ASSERTTEST_CHECK_LEVEL_ARG
175
176#endif
177
178// ----------------------------------------------------------------------------
179// Copyright 2018 Bloomberg Finance L.P.
180//
181// Licensed under the Apache License, Version 2.0 (the "License");
182// you may not use this file except in compliance with the License.
183// You may obtain a copy of the License at
184//
185// http://www.apache.org/licenses/LICENSE-2.0
186//
187// Unless required by applicable law or agreed to in writing, software
188// distributed under the License is distributed on an "AS IS" BASIS,
189// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190// See the License for the specific language governing permissions and
191// limitations under the License.
192// ----------------------------- END-OF-FILE ----------------------------------
193
194/** @} */
195/** @} */
196/** @} */
#define BSLS_IDENT(str)
Definition bsls_ident.h:195