1
0
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:
Martine Lenders 2014-11-08 19:13:46 +01:00
commit c321592a66

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
}