mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 05:19:17 +02:00
* pass variants by addr when using fastcall conventions
git-svn-id: trunk@4996 -
This commit is contained in:
parent
5213992110
commit
e1faef3ec9
@ -157,10 +157,14 @@ unit cpupara;
|
|||||||
begin
|
begin
|
||||||
{ variants are small enough to be passed by value except if
|
{ variants are small enough to be passed by value except if
|
||||||
required by the windows api
|
required by the windows api
|
||||||
|
|
||||||
|
variants are somethings very delphi/windows specific so do it like
|
||||||
|
windows/delphi (FK)
|
||||||
}
|
}
|
||||||
if (target_info.system=system_i386_win32) and
|
if ((target_info.system=system_i386_win32) and
|
||||||
(calloption=pocall_stdcall) and
|
(calloption=pocall_stdcall) and
|
||||||
(varspez=vs_const) then
|
(varspez=vs_const)) or
|
||||||
|
(calloption=pocall_register) then
|
||||||
result:=true
|
result:=true
|
||||||
else
|
else
|
||||||
result:=false;
|
result:=false;
|
||||||
|
Loading…
Reference in New Issue
Block a user