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

◆ null_pointer_exception_

#define null_pointer_exception_ (   ...)

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

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

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