[fpc-devel] FPC_HAS_CONSTREF
Marcos Douglas
md at delfire.net
Thu Oct 21 21:42:03 CEST 2010
On Thu, Oct 21, 2010 at 4:17 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> 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
Thanks Jonas.
I'll change the Zeos source...
Marcos Douglas
More information about the fpc-devel
mailing list