DEPRECATED: Use failBySleep instead.
Declared in <bsls_assert.h>
[[noreturn]]
static
void
failSleep(
char const* comment,
char const* file,
int line);
Use the specified expression comment, file name, and line number to generate a helpful output message and then, after logging, spin in an infinite loop. Note that this handler function is useful for hanging a process so that a debugger may be attached to it.
This function does not return.
| Name | Description |
|---|---|
| comment | expression text of the failed assertion |
| file | source file name where the assertion failed |
| line | source line number where the assertion failed |