xte::segfault()

Defined in header <xte/sys/segfault.hpp>

Dereferences nullptr to cause a segmentation fault, though whether it's handled at all is entirely up to the operating system.


Definition

inline void segfault() noexcept;
Why would you use this?



Example

xte::segfault();
Possible output:
Segmentation fault (code dumped)
[View in Compiler Explorer]