[#BloombergLP-bsls-Assert-failSleep]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Assert.adoc[Assert]::failSleep
:relfileprefix: ../../../
:mrdocs:

*DEPRECATED*&colon; Use `failBySleep` instead&period;

== Synopsis

Declared in `&lt;bsls&lowbar;assert&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;noreturn&rsqb;&rsqb;
static
void
failSleep(
    char const* comment,
    char const* file,
    int line);
----

== Description

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&period; Note that this handler function is useful for hanging a process so that a debugger may be attached to it&period;

== Return Value

[NOTE]
====
This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^].
====
== Parameters

[cols="1,4"]
|===
| 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
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
