Răsfoiți Sursa

+ support for {$calling default} to switch back to the default calling
convention

git-svn-id: trunk@3192 -

Jonas Maebe 19 ani în urmă
părinte
comite
4d55b3aee3
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      compiler/globals.pas

+ 6 - 0
compiler/globals.pas

@@ -1977,6 +1977,12 @@ end;
       begin
         result:=false;
         hs:=upper(s);
+        if (hs = 'DEFAULT') then
+          begin
+            a := pocall_default;
+            result := true;
+            exit;
+          end;
         for t:=low(tproccalloption) to high(tproccalloption) do
          if DefProcCallName[t]=hs then
           begin