[fpc-devel] FPC_HAS_CONSTREF

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Oct 21 21:17:16 CEST 2010


On 21 Oct 2010, at 21:05, Marcos Douglas wrote:

> There is, in objpash.inc, line 246:
> function QueryInterface({$IFDEF
> FPC_HAS_CONSTREF}constref{$ELSE}const{$ENDIF} iid : tguid;out obj) :
> longint;{$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF};
> 
> What is "constref",

A "const" parameter that is always passed by reference.

> where was defined FPC_HAS_CONSTREF and how use this?

http://wiki.freepascal.org/User_Changes_Trunk#IInterface.QueryInterface.2C_._AddRef_and_._Release_definitions_have_been_changed


Jonas


More information about the fpc-devel mailing list