Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly 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.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcestaticcond.d

Documentationhttps://dlang.org/phobos/dmd_staticcond.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/staticcond.d

const(char)*visualizeStaticCondition(Expressionoriginal, Expressioninstantiated, const Expression[]negatives, boolfull, ref uintitemCount);
Format a static condition as a tree-like structure, marking failed and bypassed expressions.
Parameters:
Expressionoriginaloriginal expression
Expressioninstantiatedinstantiated expression
Expression[]negativesarray with negative clauses frominstantiated expression
boolfullcontrols whether it shows the full output or only failed parts
uintitemCountreturns 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
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 00:51:23 2026

[8]ページ先頭

©2009-2026 Movatter.jp