-
Notifications
You must be signed in to change notification settings - Fork 168
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
Cannot compile in Visual Studio 2015 #31
Comments
Tracking it down further (I don't have a solution yet...), it has to do with the way that the VC++ preprocessor expands (or lack thereof) of |
It looks like it's a difference in the way GCC and Visual Studio treat See this answer on Stack Overflow: http://stackoverflow.com/a/5530998 A fix is to force the macro expansion by wrapping macros taking in
For example, the
to
In addition, the I'm 99% confident this fix will work with GCC as well as VC++. I'm just not sure how to go about making the change in the ruby generation file. |
You can explicitly use the numbered functions as a workaround. |
I work with gcc on linux and cl.exe on windows, the EXPAND trick work well for M$. Thank's |
Thanks for the contribution! |
I'm trying to use FFF from within Visual Studio 2015 and VC++, and the example I tried (attached) does not want to compile. Here's the test file:
The
FAKE_VOID_FUNC
andFAKE_VALUE_FUNC
macros are generating the following warning.Trying to compile generates the following errors, all stemming from the
FAKE_VOID_FUNC
andFAKE_VALUE_FUNC
macros.FFFTestProject.zip
The text was updated successfully, but these errors were encountered: