Commit 9dc7f980 authored by incardon's avatar incardon

changing from exit to abort

parent 9817279e
......@@ -12,7 +12,7 @@
// Macro that decide what to do in case of error
#ifdef STOP_ON_ERROR
#define ACTION_ON_ERROR(error) print_stack();exit(1);
#define ACTION_ON_ERROR(error) print_stack();abort();
#define THROW noexcept(true)
#elif defined(THROW_ON_ERROR)
#define ACTION_ON_ERROR(error) if (!std::uncaught_exception()) {print_stack();throw error;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment