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

Error related to macro C lang #404

Closed
nguyenngocninh opened this issue Jan 23, 2025 · 2 comments
Closed

Error related to macro C lang #404

nguyenngocninh opened this issue Jan 23, 2025 · 2 comments

Comments

@nguyenngocninh
Copy link

Hi-teams!

I have issue with function C as below:

int test()
{
    #ifdef(FUNCTION)
    {
        int var_data = 0;    
    
    #else
    {
        int var_data = 1;
    #endif
    }
    return 0;
}

The lizard tool can not detect this function.

Thank you very much!

@nguyenngocninh
Copy link
Author

Thank for your response!
I tried your solution, but it still can not detect this function.
Could you confirm source code oke?

Thank you very much!

@terryyin
Copy link
Owner

terryyin commented Feb 3, 2025

please try run with a -Ecpre option. it will ignore code in the #else branch.

@terryyin terryyin closed this as completed Feb 3, 2025
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

3 participants
@terryyin @nguyenngocninh and others