Commit a011acc9 authored by incardon's avatar incardon
Browse files

Fixing SE compilation

parent e15dcba6
......@@ -11,10 +11,13 @@
// Macro that decide what to do in case of error
#ifdef STOP_ON_ERROR
#define ACTION_ON_ERROR(error) exit(1);
#define THROW noexcept(true)
#elif defined(THROW_ON_ERROR)
#define ACTION_ON_ERROR(error) if (!std::uncaught_exception()) throw error;
#define THROW noexcept(false)
#else
#define ACTION_ON_ERROR(error)
#define THROW noexcept(true)
#endif
......
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