浏览代码

fcl-passrc: skip unknown $if functions by default

git-svn-id: trunk@36184 -
Mattias Gaertner 8 年之前
父节点
当前提交
2a0c83bb3c
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      packages/fcl-passrc/src/pscanner.pp

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

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