mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:29:24 +02:00
* support for getting dispatch interface properties
git-svn-id: trunk@9171 -
This commit is contained in:
parent
b42930f2fa
commit
48c0e3b023
@ -800,6 +800,15 @@ implementation
|
|||||||
end;
|
end;
|
||||||
InvokeKind:=CallDesc^.CallType;
|
InvokeKind:=CallDesc^.CallType;
|
||||||
MethodID:=DispIDs^[0];
|
MethodID:=DispIDs^[0];
|
||||||
|
case InvokeKind of
|
||||||
|
DISPATCH_PROPERTYPUT:
|
||||||
|
begin
|
||||||
|
{ !! FIXME}
|
||||||
|
end;
|
||||||
|
DISPATCH_METHOD:
|
||||||
|
if assigned(Result) and (CallDesc^.ArgCount=0) then
|
||||||
|
InvokeKind:=DISPATCH_METHOD or DISPATCH_PROPERTYGET;
|
||||||
|
end;
|
||||||
{$ifdef DEBUG_COMDISPATCH}
|
{$ifdef DEBUG_COMDISPATCH}
|
||||||
writeln('DispatchInvoke: MethodID: ',MethodID,' InvokeKind: ',InvokeKind);
|
writeln('DispatchInvoke: MethodID: ',MethodID,' InvokeKind: ',InvokeKind);
|
||||||
{$endif DEBUG_COMDISPATCH}
|
{$endif DEBUG_COMDISPATCH}
|
||||||
|
Loading…
Reference in New Issue
Block a user