X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ffatal.hpp;h=c1c2b6838fbf929d6d0826e569c857fc8455629b;hb=3998b1125e1b9f8ebd2c963aa6f8d60131bc97c4;hp=b64b3606e8da253770e183ba6efce2d9566be054;hpb=9c5fa1db34c5fb1ffed88742caeffa5a9afd0a9e;p=awesomized%2Flibmemcached diff --git a/libtest/fatal.hpp b/libtest/fatal.hpp index b64b3606..c1c2b683 100644 --- a/libtest/fatal.hpp +++ b/libtest/fatal.hpp @@ -55,4 +55,5 @@ private: } // namespace libtest -#define fatal_message(__mesg) libtest::fatal(LIBYATL_DEFAULT_PARAM, __mesg) +#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); }