I'm making my own assert macro using Android NDK in C++ like in this answer, but there is an std::exit
function that can not be used in Android. Is there some alternative like std::exit
in Android?
Had a similar requirement and found std::terminate
works. In particular, on iOS (and quite likely Android) it causes a "forced" crash which Application Performance Management Tools (aka Crash Loggers) like Crashlytics would pick up and report.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With