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:
parent
e3369d8a32
commit
bde841120a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue