Report a bugIf you spot a problem with this page, click here to create a Bugzilla issue.
Improve this pageQuickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.
dmd.staticcond
Lazily evaluate static conditions forstatic if,static assert and template constraints.
const(char)*
visualizeStaticCondition(Expression
original, Expression
instantiated, const Expression[]
negatives, bool
full, ref uint
itemCount);
Format a static condition as a tree-like structure, marking failed and bypassed expressions.
Parameters:Expressionoriginal | original expression |
Expressioninstantiated | instantiated expression |
Expression[]negatives | array with negative clauses frominstantiated expression |
boolfull | controls whether it shows the full output or only failed parts |
uintitemCount | returns the number of written clauses |
Returns:formatted string ornull if the expressions werenull, or if the instantiated expression is not based on the original one