Browse Source

compiler: check modeswitches first

git-svn-id: trunk@25712 -
paul 12 years ago
parent
commit
8f6f0d63a0
1 changed files with 1 additions and 1 deletions
  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;