浏览代码

compiler: check modeswitches first

git-svn-id: trunk@25712 -
paul 11 年之前
父节点
当前提交
8f6f0d63a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/pdecsub.pas

+ 1 - 1
compiler/pdecsub.pas

@@ -2483,7 +2483,7 @@ const
              _UNIMPLEMENTED,
              _EXPERIMENTAL,
              _DEPRECATED :
-               if (pd.typ=procdef) and (m_delphi in current_settings.modeswitches) then
+               if (m_delphi in current_settings.modeswitches) and (pd.typ=procdef) then
                  maybe_parse_hint_directives(tprocdef(pd))
                else
                  exit;