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

Macro defintion splitted with \ in its macro name isn't respected well #393

Open
Tal500 opened this issue Dec 10, 2024 · 2 comments
Open

Comments

@Tal500
Copy link
Contributor

Tal500 commented Dec 10, 2024

An edge case, that we have in our code base to avoid grepping. The following code:

#define A\
B 0

AB

gcc -E output:

0

simplecpp output:

AB
@danmar
Copy link
Owner

danmar commented Dec 12, 2024

@Tal500 can you please simplify the examples. The code int foo() { is not handled during the preprocessing and can be removed.
I prefer if you just show the relevant gcc -E output and show what the simplecpp output is. Example: #397

@Tal500
Copy link
Contributor Author

Tal500 commented Dec 15, 2024

@Tal500 can you please simplify the examples. The code int foo() { is not handled during the preprocessing and can be removed. I prefer if you just show the relevant gcc -E output and show what the simplecpp output is. Example: #397

Done

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