X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.hpp;h=7c18d6bc448ce4eca07a71d84ee2927c775ca579;hb=0b262a1571e2196e988a841d3449b5a4e0a2081a;hp=7da55bd5e1c1f141bb900af06e9777d7cf1fdc33;hpb=23dca174eef8d846e3d4402729b57f6ded035e64;p=awesomized%2Flibmemcached diff --git a/libtest/test.hpp b/libtest/test.hpp index 7da55bd5..7c18d6bc 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 @@ -47,6 +66,7 @@ #include #include +#include #include #include @@ -76,3 +96,4 @@ #include #include #include +#include