From e1828ca6f362309c320a8708dfdfa4870ba627c5 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 28 Jun 2016 10:15:44 -0300 Subject: [PATCH] Call std::abort() on base_assert() so it acts like a breakpoint --- src/base/debug.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base/debug.cpp b/src/base/debug.cpp index 9af43b4c0..e6d6ced26 100644 --- a/src/base/debug.cpp +++ b/src/base/debug.cpp @@ -48,6 +48,7 @@ int base_assert(const char* condition, const char* file, int lineNum) text += ": Assertion failed: "; text += condition; std::cerr << text << std::endl; + std::abort(); return 1; #endif