Skip to content
Snippets Groups Projects
Commit ae38017d authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Add commented out THROW() macro

parent ca5c3674
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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