[Lazarus] TRTLCriticalSection
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Feb 25 12:53:33 CET 2014
On Tue, 25 Feb 2014 13:22:41 +0200
patspiper <patspiper at gmail.com> wrote:
>[...]
> LCLIntf's (winapi.h) EnterCriticalsection(TCriticalSection) always takes
> precedence in compilation although codetools show it defined in
> threadh.inc: EnterCriticalsection(TRTLCriticalSection).
The compiler is very strict and requires the "overload" keyword for
multiple functions with the same name in various units.
Codetools allows to see all overloads, no matter if the "overload"
keyword is missing. It depends on the context if this is a feature or a
bug.
Mattias
More information about the Lazarus
mailing list