diff --git a/emper/Common.hpp b/emper/Common.hpp index 46ca33d721e9a592ac71a61ffd05e4f413809b97..8e21d83f884511b38775288ac65ba944674a2159 100644 --- a/emper/Common.hpp +++ b/emper/Common.hpp @@ -12,6 +12,9 @@ typedef std::function<void(void)> func_t; #define DIE_MSG(x) die(__FILE__ ":" TOSTRING(__LINE__) " " #x, false) #define DIE_MSG_ERRNO(x) die(__FILE__ ":" TOSTRING(__LINE__) " " #x, true) +// We compile with -fno-exceptions for the moment. +//#define THROW(x) do { throw std::runtime_error(x); } while (false) + #define likely(x) __builtin_expect(!!(x),1) #define unlikely(x) __builtin_expect(!!(x),0)