Closed usr42 closed 7 years ago
The FUNCNAME##_reset() functions should have void in their parameter lists also instead of being empty. For example, in fff.h at line 105 it should be void FUNCNAME##_reset(void){ \
and line 140 should be void FUNCNAME##_reset(void); \
. Lines 182, 227, etc all need to be changed as well but I guess that would be the same fix in the Ruby file as for line 140.
Everything else looks good.
FUNCNAME##_reset now also uses void as parameter list. Thanks for the finding.
It looks like there is an unused function in the code that I only noticed after your latest commit. Function output_reset_function
between lines 350-355 in fakegen.rb does not appear to be called from anywhere. You could probably remove it.
Right. I also saw the unused function. I already added the removal of this function to the pull request #28
This fixes issue 26. For functions without parameter void is used as parameter list. E.g.
void func(void)
instead ofvoid func()
.