Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the 'mod' parameter when specifying mocked method arguments #19

Open
tudortimi-ifx opened this issue Jul 19, 2019 · 0 comments
Open

Comments

@tudortimi-ifx
Copy link

I think we can do away with the MOD argument to SVMOCK_FUNCn(...) and friends family of macros. If the argument has a composite type, it's possible to specify this directly. We would need to do a typdef inside the macro body, but this might actually be helpful for other stuff as well:

`SVMOCK_FUNC1(
    some_func, int,
    /*input*/, int[],  fred, /*no default*/
    )

In the macro expansion we would do something like:

typedef int[] fred_arg_type;

virtual function int some_func(fred_arg_type fred);
  // ...
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant