1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

unittests: make test macros save for strict aliasing

This commit is contained in:
Martine Lenders 2014-11-08 18:17:55 +01:00
parent 51a41212f3
commit 1138360a14

View File

@ -62,9 +62,9 @@ struct __Test {
TestImplement* isa;
};
#define Test_name(s) ((Test*)s)->isa->name(s)
#define Test_run(s,r) ((Test*)s)->isa->run(s,r)
#define Test_countTestCases(s) ((Test*)s)->isa->countTestCases(s)
#define Test_name(s) (s)->isa->name(s)
#define Test_run(s,r) (s)->isa->run(s,r)
#define Test_countTestCases(s) (s)->isa->countTestCases(s)
#ifdef __cplusplus
}