From 80a78b91c2905fcacf0236d63a9f4e3d7e576d7e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Mar 2021 23:30:24 +0100 Subject: minor fixes + add tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamma_method_count.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libgamma_method_count.c') diff --git a/libgamma_method_count.c b/libgamma_method_count.c index 34dd4fa..1f66e86 100644 --- a/libgamma_method_count.c +++ b/libgamma_method_count.c @@ -2,6 +2,8 @@ #include "common.h" +#define X(...) +1 + /** * The number adjustment methods provided by the * version this library the program is linked @@ -10,4 +12,6 @@ * This number includes both compile-time enabled * and compile-time disabled adjustment methods */ -const int libgamma_method_count = LIBGAMMA_METHOD_COUNT; +const int libgamma_method_count = LIST_METHODS(X); + +#undef X -- cgit v1.2.3-70-g09d2