-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also fix return fn name construction to not include return type to account for ptr return types -- i.e. void *, * is not a valid char in a function name
- Loading branch information
1 parent
8dc45f9
commit 94505b2
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef SEAMOCK_UNIT_PROOF_H_ | ||
#define SEAMOCK_UNIT_PROOF_H_ | ||
|
||
#define DEFINE_UNIT_PROOF(name) \ | ||
extern void postchecks_ok(void); \ | ||
void test_##name(void); \ | ||
void test_##name(void) | ||
|
||
#define CALL_UNIT_PROOF(name) \ | ||
test_##name(); \ | ||
postchecks_ok(); | ||
|
||
#endif // SEAMOCK_UNIT_PROOF_H_ |