Browse Source

fcl-passrc: skip unknown $if functions by default

git-svn-id: trunk@36184 -
Mattias Gaertner 8 years ago
parent
commit
2a0c83bb3c
1 changed files with 10 additions and 2 deletions
  1. 10 2
      packages/fcl-passrc/src/pscanner.pp

+ 10 - 2
packages/fcl-passrc/src/pscanner.pp

@@ -3369,8 +3369,16 @@ begin
       end;
       end;
     exit;
     exit;
     end;
     end;
-  Value:='';
-  Result:=false;
+  if (po_CheckCondFunction in Options) then
+    begin
+    Value:='';
+    Result:=false;
+    end
+  else
+    begin
+    Value:='0';
+    Result:=true;
+    end;
 end;
 end;
 
 
 procedure TPascalScanner.OnCondEvalLog(Sender: TCondDirectiveEvaluator;
 procedure TPascalScanner.OnCondEvalLog(Sender: TCondDirectiveEvaluator;