Mercurial > projects > ddmd
view dmd/SharedStaticDtorDeclaration.d @ 179:cd48cb899aee
Updated to dmd2.040
author | korDen |
---|---|
date | Sun, 17 Oct 2010 20:56:07 +0400 |
parents | |
children | b0d41ff5e0df |
line wrap: on
line source
module dmd.SharedStaticDtorDeclaration; import dmd.StaticDtorDeclaration; import dmd.Loc; import dmd.Dsymbol; import dmd.OutBuffer; import dmd.HdrGenState; import dmd.FuncDeclaration; class SharedStaticDtorDeclaration : StaticDtorDeclaration { this(Loc loc, Loc endloc) { super(loc, endloc, "_sharedStaticDtor"); } Dsymbol syntaxCopy(Dsymbol s) { assert(!s); SharedStaticDtorDeclaration sdd = new SharedStaticDtorDeclaration(loc, endloc); return FuncDeclaration.syntaxCopy(sdd); } void toCBuffer(OutBuffer buf, HdrGenState* hgs) { if (!hgs.hdrgen) { buf.writestring("shared "); StaticDtorDeclaration.toCBuffer(buf, hgs); } } SharedStaticDtorDeclaration isSharedStaticDtorDeclaration() { return this; } }