[beast: 10/43] SFI: sfidl.cc: main: abort if an assertion is triggered



commit 877d50dd8a0f6d4818108e1f7e63bdb6b6413c7c
Author: Tim Janik <timj gnu org>
Date:   Sun Jun 25 15:44:04 2017 +0200

    SFI: sfidl.cc: main: abort if an assertion is triggered
    
    Signed-off-by: Tim Janik <timj gnu org>

 sfi/sfidl.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/sfi/sfidl.cc b/sfi/sfidl.cc
index 76bedee..822c4d3 100644
--- a/sfi/sfidl.cc
+++ b/sfi/sfidl.cc
@@ -7,6 +7,8 @@ using namespace Sfidl;
 
 int main (int argc, char **argv)
 {
+  Bse::assertion_failed_hook ([&] () { Bse::breakpoint(); });
+
   Options options;
   Parser parser;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]