CodeTools works great for the most part, but some annoying bugs still show up from time to time.
Since upgrading to Lazarus trunk isn't always an option, I wanted to ask:
Does CodeTools define any special macros?For example, in Lazarus 4.0 CodeTools breaks if the first function in the
implementation section is generic. Currently I'm using this workaround:
implementation
{$ifopt D+} procedure __CodeTools_Jump_Fix(); begin end; {$endif}
generic procedure Foo<T>(): T; {...}
It would be great if I could enclose problematic code in something like
{$ifdef CODETOOLS} (at least until the underlying issue is fixed & upgrading becomes possible), but
Source →
Unit information... →
Show CodeTools Values doesn't show anything interesting, so I'm not very optimistic.