Quick Links:

bal | bbl | bdl | bsl

Component bsls_assert_macroreset
[Package bsls]

Undefine all macros from bsls_assert.h and bsls_review.h. More...

Outline
Purpose:
Undefine all macros from bsls_assert.h and bsls_review.h.
Description:
This component provides a header that is included to undefine all macros defined in bsls_assert.h and bsls_review.h; it is designed to be re-includable. This is for the use of the bsls_assert test driver to enable it to re-include the bsls_assert.h header with different input macros and verify that they output the correct resulting macro definitions.
Usage:
To undefine all macros defined in bsls_assert.h and bsls_review.h, first disable the header include guard for this header (bsls_assert_macroreset.h):
  #undef INCLUDED_BSLS_ASSERT_MACRORESET
Then re-include this header, which will undefine the macros that were defined by bsls_assert.h and bsls_review.h: Then define any macros that control the behaviors of bsls_assert.h and bsls_review.h for this particular test, then re-include bsls_assert.h:
  #include <bsls_assert.h>