Bläddra i källkod

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

git-svn-id: trunk@3192 -

Jonas Maebe 19 år sedan
förälder
incheckning
4d55b3aee3
1 ändrade filer med 6 tillägg och 0 borttagningar
  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