simplecpp icon indicating copy to clipboard operation
simplecpp copied to clipboard

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

Open Tal500 opened this issue 1 year ago • 2 comments

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

Tal500 avatar Dec 10 '24 14:12 Tal500

@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: https://github.com/danmar/simplecpp/issues/397

danmar avatar Dec 12 '24 10:12 danmar

@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

Tal500 avatar Dec 15 '24 14:12 Tal500