test.h: Make test functions static

This makes the compiler complain about a test that was not registered with
ADDTEST.
This commit is contained in:
Laria 2021-12-18 16:09:03 +01:00
parent e3369d8a32
commit bde841120a

View file

@ -149,7 +149,7 @@ must_alloc(testctx t, size_t size)
#define ADDTEST(name) {#name, name##_test}
#define TEST(name, t) void name##_test(testctx t)
#define TEST(name, t) static void name##_test(testctx t)
#ifdef __cplusplus
}