codetools: fixed skipping include files in skipped ifdef

git-svn-id: trunk@36769 -
This commit is contained in:
mattias 2012-04-14 11:17:45 +00:00
parent 6f02c6c229
commit c7a09910d0

View File

@ -3682,11 +3682,14 @@ begin
#0:
begin
SrcPos:=p-PChar(Src)+1;
if (SrcPos>SrcLen) and not ReturnFromIncludeFile then begin
CommentStartPos:=0;
break;
end;
inc(p);
if (SrcPos>SrcLen) then begin
if not ReturnFromIncludeFile then begin
CommentStartPos:=0;
break;
end;
p:=@Src[SrcPos];
end else
inc(p);
end;
else
inc(p);