1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-22 09:12:19 -05:00

Changed calling convention to safecall, can anyone confirm that arrays in results work now?

This commit is contained in:
Niels 2010-04-07 18:23:02 +02:00
parent f08e191344
commit 6f757f3a78

View File

@ -223,7 +223,7 @@ uses
{$ifdef PS_StdCall}
{$define extdecl := stdcall}
{$else}
{$define extdecl := REGISTER}
{$define extdecl := safecall}
{$endif}
{Some General PS Functions here}
@ -613,7 +613,7 @@ begin
for i := 0 to high(ExportedMethods) do
if ExportedMethods[i].FuncPtr <> nil then
Sender.AddFunctionEx(ExportedMethods[i].FuncPtr,ExportedMethods[i].FuncDecl,
{$ifdef PS_StdCall}cdStdCall{$else}cdRegister {$endif});
{$ifdef PS_StdCall}cdStdCall{$else}cdSafeCall{$endif});
end;
function TPSThread.RequireFile(Sender: TObject;