X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fresult.hpp;h=79acbb40ede8e6bed81bfbb55966802b4454b8f8;hb=f0b6a382ea0be4c327f9968cf5d65ac1dd8bdf4c;hp=9e6bf2098a69101bf85299a5fb55d54b9183bdd8;hpb=858824dce02bade6464c404beef41da9321d58ef;p=awesomized%2Flibmemcached diff --git a/libtest/result.hpp b/libtest/result.hpp index 9e6bf209..79acbb40 100644 --- a/libtest/result.hpp +++ b/libtest/result.hpp @@ -36,26 +36,21 @@ #pragma once -#include #include #include -#include #include #include #define _SUCCESS throw libtest::__success(LIBYATL_DEFAULT_PARAM) -#define SKIP throw libtest::__skipped(LIBYATL_DEFAULT_PARAM) -#define FAIL(...) \ +#define SKIP(...) \ do \ { \ - throw libtest::__failure(LIBYATL_DEFAULT_PARAM, __VA_ARGS__); \ + throw libtest::__skipped(LIBYATL_DEFAULT_PARAM, __VA_ARGS__); \ } while (0) -#define fatal_message(...) \ +#define FAIL(...) \ do \ { \ - throw libtest::fatal(LIBYATL_DEFAULT_PARAM, __VA_ARGS__); \ + throw libtest::__failure(LIBYATL_DEFAULT_PARAM, __VA_ARGS__); \ } while (0) - -#define fatal_assert(__assert) if((__assert)) {} else { throw libtest::fatal(LIBYATL_DEFAULT_PARAM, #__assert); }