2 // Compiler implementation of the D programming language
3 // Copyright (c) 1999-2006 by Digital Mars
5 // written by Walter Bright
6 // http://www.digitalmars.com
7 // License for redistribution is by either the Artistic License
8 // in artistic.txt, or the GNU General Public License in gnu.txt.
9 // See the included readme.txt for details.
11 #ifndef DMD_STATICASSERT_H
12 #define DMD_STATICASSERT_H
25 struct StaticAssert
: Dsymbol
30 StaticAssert(Loc loc
, Expression
*exp
, Expression
*msg
);
32 Dsymbol
*syntaxCopy(Dsymbol
*s
);
33 int addMember(Scope
*sc
, ScopeDsymbol
*sd
, int memnum
);
34 void semantic(Scope
*sc
);
35 void semantic2(Scope
*sc
);
37 int oneMember(Dsymbol
**ps
);
38 void toObjFile(int multiobj
);
40 void toCBuffer(OutBuffer
*buf
, HdrGenState
*hgs
);