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

support expand macro #193

Closed
meritozh opened this issue Jun 18, 2019 · 4 comments
Closed

support expand macro #193

meritozh opened this issue Jun 18, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@meritozh
Copy link

Support expanding macro is very useful.

@andreasfertig
Copy link
Owner

Hello @meritozh,

can you be more specific? For example, the following code gets expanded:

#define MY_MACRO(x) (x*2)

int main()
{
  return MY_MACRO(4);
}

See here

Andreas

@meritozh
Copy link
Author

@andreasfertig demo here. code copied from CppCmb.

macros only expanded under some conditions?

@andreasfertig
Copy link
Owner

Thank you. I will have a look at it.

@andreasfertig
Copy link
Owner

Hello @meritozh,

I have found the bug. A fix is on its way. Thank you for improving C++ Insights with your feedback. A few other cases in the tests are now also better.

Andreas

@andreasfertig andreasfertig added the bug Something isn't working label Jun 19, 2019
andreasfertig added a commit that referenced this issue Jun 19, 2019
Fixed #193: Expand global declaration wrapped in a macro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants