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

Functions with variable number of parameters not generated correctly. #24

Open
chrisemsen opened this issue May 10, 2022 · 0 comments
Open
Assignees
Labels
Projects

Comments

@chrisemsen
Copy link

In the follow code, the auto generated .cpp code doesn't include the ellipses from the function prototype, causing the code to not compile with a "no matching function defined" error

h/Log.h:

class CLog
{
	static void Error (int32_t Module, const char_t *pMessage, ...)	
};

mock/Log.CPP:

void Log::Error(int32_t Module, const char_t * pMessage)       // missing **, ...**
{
	mock().actualCall("Log::Error").withIntParameter("Module", Module).withConstPointerParameter("pMessage", pMessage);
}
@jgonzalezdr jgonzalezdr self-assigned this May 10, 2022
@jgonzalezdr jgonzalezdr added this to To do in CppUMockGen via automation May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
CppUMockGen
  
To do
Development

No branches or pull requests

2 participants