소스 검색

+ 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
       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