Conversation
7babb61 to
9486efc
Compare
|
From my experiments (and the provided unit test) it looks like this only handles object-like macro aliases for |
|
You are right, I missed |
|
I'm happy to take on a fix, also. |
|
You definitely know this code better. My attempt at a logic fix would either way prefer involving an AI Agent. |
|
The additional testcase that I think is needed is for function-like macros, i.e. #define HASINCLUDE(x) __has_include(x)
#if HASINCLUDE(x)
...
#endifThe expansion path is likely to be different than the object-like macros As for Given that I would have to carefully review any PR for correctness I am happy to write the fix. I will be glad to copy your testcase (and credit you for it). Thanks for the bug report! |
Fixes #260
Disclaimer: This is mostly based on an analysis with an AI Agent.