X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.hpp;h=e60895fa464881c420c547222980d55fc5143c0c;hb=f9bdaf620aab27a23bd4bb7b19d2597c3eef2c9c;hp=71cd707f4f612f6cfe72b5418deb222d2f537fa0;hpb=bed5d0baa746d10fd3899be96a6ab8673daa7e03;p=awesomized%2Flibmemcached diff --git a/libtest/test.hpp b/libtest/test.hpp index 71cd707f..e60895fa 100644 --- a/libtest/test.hpp +++ b/libtest/test.hpp @@ -1,9 +1,8 @@ /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * - * uTest, libtest + * libtest * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ - * Copyright (C) 2006-2009 Brian Aker * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -48,6 +47,8 @@ #include #include +#include +#include #include #include #include @@ -58,6 +59,7 @@ #include #include #include +#include #pragma once @@ -80,3 +82,5 @@ LIBTEST_API #endif #define test_string_make_from_cstr(X) (X), ((X) ? strlen(X) : 0) + +#define test_array_length(__array) sizeof(__array)/sizeof(&__array)