I made a somewhat puzzling observation last night as already described
here. When I place
{$IFDEF LCLGTK2}
dudeldum
{$ENDIF}
somewhere in an 'original' LCL unit like eg
StdCtrls.pp or
customcombobox.inc the 'code' between is not grayed out but obviously is nevertheless ignored by the compiler. I am on Gtk2 here and target is Gtk2 as well. When I replace
LCLGTK2 with
LCLQT or
LCLWIN32 the code is grayed out as expected. Other defines as eg
{$IFDEF UNIX} work as expected as well. When I place above quirk in project code or source of one of my own packages the compiler does stop at
dudeldum as expected. Tested twice with both stable and trunk and FPC 3.2.0.
How is that...?