xtd 0.2.0
Loading...
Searching...
No Matches

◆ software_termination_exception_

#define software_termination_exception_ (   ...)

#include <xtd.core/include/xtd/software_termination_exception.h>

Helper on xtd::software_termination_exception to call it with current stack frame information.

Library
xtd.core
Remarks
Is equivalent to xtd::software_termination_exception {{any argument}, csf_}
void my_func() {
if (invalid_info) throw software_termination_exception_(); // same as : throw software_termination_exception {csf_};
if (invalid_value) throw software_termination_exception_("Bad value"); // same as : throw software_termination_exception {"Bad value", csf_};
...
}
#define software_termination_exception_(...)
Helper on xtd::software_termination_exception to call it with current stack frame information.
Definition software_termination_exception.h:99