aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_connector_type_count.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
committerMattias Andrée <maandree@kth.se>2021-03-08 00:21:02 +0100
commitb058098fdcc5d4ed9b81fdb17f64820c0360ad48 (patch)
treee39e5f547b900922775d466507c29b352f046a53 /libgamma_connector_type_count.c
parentmisc (diff)
downloadlibgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.gz
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.bz2
libgamma-b058098fdcc5d4ed9b81fdb17f64820c0360ad48.tar.xz
m + style fix + check memory allocation overflows
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libgamma_connector_type_count.c')
-rw-r--r--libgamma_connector_type_count.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgamma_connector_type_count.c b/libgamma_connector_type_count.c
index dfd38ec..646fd70 100644
--- a/libgamma_connector_type_count.c
+++ b/libgamma_connector_type_count.c
@@ -2,8 +2,12 @@
#include "common.h"
+#define X(...) +1
+
/**
* The number of values defined in `libgamma_connector_type_t`
* in the version of the library the program is linked against
*/
-const int libgamma_connector_type_count = LIBGAMMA_CONNECTOR_TYPE_COUNT;
+const int libgamma_connector_type_count = LIST_CONNECTOR_TYPES(X);
+
+#undef X