Skip to content

Commit

Permalink
Merge pull request #1973 from authmillenon/test-macros
Browse files Browse the repository at this point in the history
embunit: make test macros save for strict aliasing
  • Loading branch information
miri64 committed Nov 8, 2014
2 parents 51a4121 + 1138360 commit c321592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unittests/embunit/embUnit/Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c321592

Please sign in to comment.