Add CHECK_NOTHROW

This commit is contained in:
Danny Robson 2012-06-20 16:47:48 +10:00
parent cf246cd097
commit eb4a5e2c04

View File

@ -139,6 +139,15 @@
} while (0)
#define CHECK_NOTHROW(C) do { \
try { \
C; \
} catch (...) { \
panic ("unexpected exception"); \
} \
} while (0)
class panic_error {
protected:
std::string m_what;