X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.hpp;h=d904070008c8a64b3fe0586be8aa03490fa5d5d5;hb=88b1aa19c0b3c5ad047222618cb17f447ea2bc67;hp=24fa7c8b0fd3f467cf221f27260cd8c2224cc76e;hpb=bcc7e71dd0d2c7d875ddb3583fd5ab2585304642;p=awesomized%2Flibmemcached diff --git a/libtest/test.hpp b/libtest/test.hpp index 24fa7c8b..d9040700 100644 --- a/libtest/test.hpp +++ b/libtest/test.hpp @@ -38,6 +38,25 @@ Structures for generic tests. */ +#pragma once + +#ifndef YATL_FULL +# define YATL_FULL 1 +#endif + +#ifndef __PRETTY_FUNCTION__ +# define __PRETTY_FUNCTION__ __func__ +#endif + +#define YATL_STRINGIFY(x) #x +#define YATL_TOSTRING(x) YATL_STRINGIFY(x) +#define YATL_AT __FILE__ ":" YATL_TOSTRING(__LINE__) +#define YATL_AT_PARAM __func__, AT +#define YATL_UNIQUE __FILE__ ":" YATL_TOSTRING(__LINE__) "_unique" +#define YATL_UNIQUE_FUNC_NAME __FILE__ ":" YATL_TOSTRING(__LINE__) "_unique_func" + +#define LIBYATL_DEFAULT_PARAM __FILE__, __LINE__, __PRETTY_FUNCTION__ + #include #include #include @@ -46,7 +65,10 @@ #include #include -#include +#include +#include +#include +#include #include #include