Open songg10 opened 3 years ago
My C-skill is at limit now but is void func(char *str, int (* numb)); same as void func(char *str, int (* numb)(void)); ?
If yes then is it possible you to modify that function prototype?
I have had many proplem with callback function parameters and I have fixed those to use proper typedefs and then
normal paramaters in functions. something like this
typedef void (*CB)(void);
void dummy(CB callback);
Hi, I am having a piece of code that needs to be mocked and cannot be modified. Its function prototype goes roughly like this
void func(char *str, int (* numb));
When I run cmock.rb on this with default configuration, it would misinterpret the second parameter and gives an error like this when I try to compile itIs there anyway to get around this except from changing the way the parameter is written?