X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/a4355b10f7738d5b8438f03fa193a710b765d8e0..09d517aa84f99c3686803d156cde10fc0c02bdc2:/t/test.h diff --git a/t/test.h b/t/test.h index 091ad88..2d77abc 100644 --- a/t/test.h +++ b/t/test.h @@ -43,7 +43,6 @@ void test_explain_decl(struct cdecl *decl); bool strict_strtoul(unsigned long *val, const char *str, int base); -void test_print_version(const char *program); void test_print_options(const struct option *lopts); /* @@ -71,4 +70,10 @@ static inline int test_rng_50_50(struct test_rng *rng) return test_rng_uniform_int(rng, 2) == 0; } +#define VERSION_NO_COPYRIGHT_SYMBOL 1 +#include "version.h" + +#define test_print_version(s) \ + do_print_version(s " (" PACKAGE_NAME ") " PACKAGE_VERSION) + #endif