Forum > Options

How to enable {$BOOLEVAL ON} for all source files



I need to activate full boolean evaluation for all my project files. I can add  {$BOOLEVAL ON} into each single project file, but how can I add the difective in Lazarus so it gets used for all files ?

Many thanks.

Boolean evaluation can only be changed with the compiler directive, thus you need to use it in each file or put it into an include file and include that in each file.

Please note that with $BOOLEVAL ON code like the following will trigger an exception depending on the input values (in this case if SomeObj is Nil):

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---if Assigned(SomeObj) and SomeObj.CheckSomething then

Many thanks for the information.


[0] Message Index

Go to full version