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

#ifndef in c++ #21

Closed
norkos opened this issue Sep 24, 2013 · 2 comments
Closed

#ifndef in c++ #21

norkos opened this issue Sep 24, 2013 · 2 comments

Comments

@norkos
Copy link

norkos commented Sep 24, 2013

Hi,

please check the example:

class Constructor{
int m_timer;

public:
Constructor::Constructor()

ifdef MAGIC

:
m_timer(5)

endif

{
int a = 0;
}
};

it doesn't work correctly even when i use -P flag.

Sorry for so strange examples :) and I think your tool is great. Such a code should be avoided.

@terryyin
Copy link
Owner

This problem should be gone now.
Just realized that it didn't support constructor initialization list before.

@norkos
Copy link
Author

norkos commented Sep 26, 2013

Thank you, it works :) Closed.

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

2 participants