summaryrefslogtreecommitdiff
path: root/lily-test.h
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2022-12-15 14:07:24 -0600
committersanine-a <sanine.not@pm.me>2022-12-15 14:07:24 -0600
commitd301084c27812519de466fc905af3e85d928b737 (patch)
tree063ea303baa089279c4e0ace7bf12cad7c050fe3 /lily-test.h
parent9bc220eb2ba77e6a7184d7b63f086e6a268b75e3 (diff)
fix compile errors for msvc
Diffstat (limited to 'lily-test.h')
-rw-r--r--lily-test.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lily-test.h b/lily-test.h
index 6d2d0a4..8f8b61c 100644
--- a/lily-test.h
+++ b/lily-test.h
@@ -84,11 +84,10 @@
/* automatic registration macros */
typedef struct lily_ll_node_t {
struct lily_ll_node_t *next;
- const char *description;
void (*f)();
} lily_ll_node_t;
-#define LILY_FILE_BEGIN() \
-static lily_ll_node_t lily_ll_last = { NULL, NULL, NULL };
+#define LILY_FILE_BEGIN(unique_id) \
+static lily_ll_node_t lily_ll_last = { NULL, NULL };
#define LILY_LIST_HEAD lily_ll_last
#define LILY_LIST_NEXT lily_ll_last
#define LILY_PUSH_TEST() LILY_TEST_H_LOCATION
@@ -437,7 +436,6 @@ static lily_ll_node_t LILY_ANON_NODE = {
&LILY_LIST_HEAD,
#define LILY_COUNTER_INCREMENT
#include LILY_TEST_H_LOCATION
- LILY_ANON_DESC,
LILY_ANON_FUNC,
};
#undef LILY_LIST_HEAD