4 ms·
Awesome way of doing assertions! https://github.com/udp/lacewing/blob/f1c6386bf33f470ff61b275cf408282781625018/src/Common.h#L79 https://github.com/udp/lacewing
by epidemian 15y ago
Awesome way of doing assertions!
https://github.com/udp/lacewing/blob/f1c6386bf33f470ff61b275cf408282781625018/src/Common.h#L79 https://github.com/udp/lacewing/blob/f1c6386bf33f470ff61b275...
I remember I used to do something like that in C++ because throwing exceptions on error situations gave me zero debug information about what happened. But forcing a segfault instead you can get the stacktrace.
As someone else commented: kudos for you code! It's really clean and well laid out.