feat(wrapper): add noreturn tog on abort

This commit is contained in:
Ronan Abhamon 2018-02-20 08:37:30 +01:00
parent e61718f658
commit 28d0c79a81

View file

@ -155,7 +155,7 @@ private:
// Runtime checker.
// ---------------------------------------------------------------------------
static inline void abort (const char *message) {
[[noreturn]] static inline void abort (const char *message) {
std::cerr << "[FATAL C-WRAPPER]" << message << std::endl;
std::terminate();
}