You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not currently easy to define a pre-processor condition which includes a block of code if variable A or variable B is defined. For example <?if $(var.A) Or $(var.B) ?> will result in an error unless both A and B are defined.
Adding a new function $(fun.defined(X)) with similar behaviour to the C/C++ pre-processor defined(X) function, would allow more complex conditional tests to be authored. For example:<?if $(fun.defined(A)) Or $(fun.defined(B)) ?> would include a block if either variables A or B are defined.
Note: There is an inconsistency in the pre-processor documentation where some of the <?if...> examples have undefined variables, which would result in a compilation error.
Originally opened by rbradford
The text was updated successfully, but these errors were encountered:
It is not currently easy to define a pre-processor condition which includes a block of code if variable A or variable B is defined. For example
<?if $(var.A) Or $(var.B) ?>
will result in an error unless both A and B are defined.Adding a new function
$(fun.defined(X))
with similar behaviour to the C/C++ pre-processordefined(X)
function, would allow more complex conditional tests to be authored. For example:<?if $(fun.defined(A)) Or $(fun.defined(B)) ?>
would include a block if either variables A or B are defined.Note: There is an inconsistency in the pre-processor documentation where some of the
<?if...>
examples have undefined variables, which would result in a compilation error.The text was updated successfully, but these errors were encountered: