6 ms·
I've used at times it to crash the program (core dump), producing a cleaner stack than abort().
by silon7 11y ago
I've used at times it to crash the program (core dump), producing a cleaner stack than abort().
- astrange 11y agoYou should use __builtin_trap(). Invoking undefined behavior lets the compiler justifiably delete the entire code path leading up to it.