version(StdDoc)

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Nov 23 23:13:04 UTC 2018


On Fri, Nov 23, 2018 at 09:53:59PM +0000, Adam D. Ruppe via Digitalmars-d-learn wrote:
> On Friday, 23 November 2018 at 21:47:51 UTC, Tony wrote:
> > What is the situation in which the identifier StdDoc is set?
> 
> When the phobos website is being compiled, its own makefile sets that.
> 
> It is basically a hack for website display.

Yes, it's a hack to make the website display something different from
what ddoc would actually generate from the real code.

There are a few cases where this is needed, e.g., to generate docs for
Windows-specific modules, since the website script is run on Posix and
the Windows APIs would not be compiled at all, leading to empty docs.


T

-- 
It's amazing how careful choice of punctuation can leave you hanging:


More information about the Digitalmars-d-learn mailing list