mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 21:23:54 +00:00
Document boost::core::lwt_init
This commit is contained in:
parent
6299da9273
commit
2d302c1666
@ -51,8 +51,16 @@ When using `lightweight_test.hpp`, *do not forget* to
|
|||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
int report_errors();
|
|
||||||
}
|
int report_errors();
|
||||||
|
|
||||||
|
namespace core
|
||||||
|
{
|
||||||
|
|
||||||
|
void lwt_init();
|
||||||
|
|
||||||
|
} // namespace core
|
||||||
|
} // namespace boost
|
||||||
``
|
``
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
@ -246,6 +254,25 @@ Return the error count from `main`.
|
|||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
[section lwt_init]
|
||||||
|
|
||||||
|
``
|
||||||
|
void boost::core::lwt_init()
|
||||||
|
``
|
||||||
|
|
||||||
|
Performs one-time initialization. Disables the interactive message
|
||||||
|
boxes displayed by the Microsoft Windows debug runtime library on
|
||||||
|
`abort`, failing `assert`, and other abnormal program terminations
|
||||||
|
(to facilitate unattended testing), and ensures that in case
|
||||||
|
`boost::report_errors` is not called (a common mistake), the program
|
||||||
|
ends with a nonzero exit code.
|
||||||
|
|
||||||
|
`lwt_init` is automatically called by the test macros. There is
|
||||||
|
no need to call it explicitly, except in cases where a test fails due
|
||||||
|
to e.g. an assertion failure before the first test macro is invoked.
|
||||||
|
|
||||||
|
[endsect]
|
||||||
|
|
||||||
[section Example]
|
[section Example]
|
||||||
|
|
||||||
``
|
``
|
||||||
|
Loading…
x
Reference in New Issue
Block a user