[Issue 3743] Forward reference problem with static if statements

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 21 20:21:35 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=3743

--- Comment #1 from Adam Wilson <flyboynw at gmail.com> ---
Updating this bug. Note that this effects Aurora Graphics.

The following will produce an 'undefined identifier' error in struct
DWRITE_GLYPH_RUN on IDWriteFontFace

static if(DX110)
{
public struct DWRITE_GLYPH_RUN {
    IDWriteFontFace fontFace; //Error: Undefined Identifier
    //...
}
}
static if(DX111) { //...}
static if(DX112) { //...}

static if(DX110)
{
public interface IDWriteFontFace : IUnknown
{
    HRESULT GetDesignGlyphMetrics(const(uint*) Indices, uint Count,
DWRITE_GLYPH_METRICS*
    //...
}
}
static if(DX111) { //...}
static if(DX112) { //...}

--


More information about the Digitalmars-d-bugs mailing list