mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +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
|
||||
{ variants are small enough to be passed by value except if
|
||||
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
|
||||
(varspez=vs_const) then
|
||||
(varspez=vs_const)) or
|
||||
(calloption=pocall_register) then
|
||||
result:=true
|
||||
else
|
||||
result:=false;
|
||||
|
Loading…
Reference in New Issue
Block a user