mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
Merge pull request #1973 from authmillenon/test-macros
embunit: make test macros save for strict aliasing
This commit is contained in:
commit
c321592a66
@ -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…
x
Reference in New Issue
Block a user