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++ #10

Closed
norkos opened this issue Aug 26, 2013 · 2 comments
Closed

#ifndef in c++ #10

norkos opened this issue Aug 26, 2013 · 2 comments

Comments

@norkos
Copy link

norkos commented Aug 26, 2013

Hi,

first of all: great tool :) I have found out that is not dealing correctly with 'ugly' ifdefs in C++.

int main(){

ifndef NORBUS

if(true){
return 1;

else

if(false){
return 0;

endif

}
return 1;

}

Could you please look at this ?

Thanks,
Norbert

@terryyin
Copy link
Owner

fixed with a simple solution, by ignoring the braces in #else branch. But the conditions will still be counted.
doesn't work with nested #if #else in function still. I want to keep the code simple.
Thanks for the bug report:-)

@norkos
Copy link
Author

norkos commented Aug 28, 2013

great :) thank you

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