Skip to content
Snippets Groups Projects
Commit a011acc9 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing SE compilation

parent e15dcba6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment