瀏覽代碼

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

git-svn-id: trunk@3192 -

Jonas Maebe 19 年之前
父節點
當前提交
4d55b3aee3
共有 1 個文件被更改,包括 6 次插入0 次删除
  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