X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ffatal.hpp;h=77050e517b4842a2fe445e129a54a5b6d3463995;hb=bc253ff1c35b279eb008b3710be9977a333da618;hp=61fe4b02acb210c65bf0e4e2f7a6c00f8ecfcd9e;hpb=675ac17fddca229e391d80eb610959d9c53db6e5;p=m6w6%2Flibmemcached diff --git a/libtest/fatal.hpp b/libtest/fatal.hpp index 61fe4b02..77050e51 100644 --- a/libtest/fatal.hpp +++ b/libtest/fatal.hpp @@ -43,8 +43,8 @@ public: // The following are just for unittesting the exception class static bool is_disabled(); - static bool disable(); - static bool enable(); + static void disable(); + static void enable(); static uint32_t disabled_counter(); static void increment_disabled_counter(); @@ -55,5 +55,5 @@ private: } // namespace libtest -#define fatal_message(__mesg) libtest::fatal(LIBYATL_DEFAULT_PARAM, "%s", __mesg) -#define fatal_assert(__assert) if((__assert)) {} else { libtest::fatal(LIBYATL_DEFAULT_PARAM, "%s", #__assert); } +#define fatal_message(__mesg) throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "%s", __mesg) +#define fatal_assert(__assert) if((__assert)) {} else { throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "%s", #__assert); }