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:
parent
51a41212f3
commit
1138360a14
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user