Browse Source

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

git-svn-id: trunk@3192 -

Jonas Maebe 19 years ago
parent
commit
4d55b3aee3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      compiler/globals.pas

+ 6 - 0
compiler/globals.pas

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