viewing code while respecting defines
Michael
keybounce at gmail.com
Mon Sep 10 19:15:37 UTC 2018
On 2018-09-10, at 9:15 AM, Jan Stary <hans at stare.cz> wrote:
> On Sep 10 08:24:39, ken.cunningham.webuse at gmail.com wrote:
>> I don't know if I asked this correctly, and it's not macports-specific, but I don't know where else to ask.
>>
>> Some of the code I'm trying to tweak (llvm-N, webkit2-gtk-N, etc) has a lot of #defines in it to modify code paths for various OS versions.
>>
>> It can get pretty mind-bending to try to follow the code path.
>>
>> Is there any editor that shows you somewhat more clearly what code path you will be following with certain sets of defines?
>
> cpp(1)
Is there a way to tell CPP to only expand compile-time determinable #ifdef's, and not macro expansion? The standard IO library, for example, gets pretty hard to read once expanded.
---
Entertaining minecraft videos
http://YouTube.com/keybounce
More information about the macports-dev
mailing list