comparison dmd/staticassert.h @ 1:c53b6e3fe49a trunk

[svn r5] Initial commit. Most things are very rough.
author lindquist
date Sat, 01 Sep 2007 21:43:27 +0200
parents
children aaade6ded589
comparison
equal deleted inserted replaced
0:a9e71648e74d 1:c53b6e3fe49a
1
2 // Compiler implementation of the D programming language
3 // Copyright (c) 1999-2006 by Digital Mars
4 // All Rights Reserved
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.
10
11 #ifndef DMD_STATICASSERT_H
12 #define DMD_STATICASSERT_H
13
14 #ifdef __DMC__
15 #pragma once
16 #endif /* __DMC__ */
17
18 #include "dsymbol.h"
19
20 struct Expression;
21 #ifdef _DH
22 struct HdrGenState;
23 #endif
24
25 struct StaticAssert : Dsymbol
26 {
27 Expression *exp;
28 Expression *msg;
29
30 StaticAssert(Loc loc, Expression *exp, Expression *msg);
31
32 Dsymbol *syntaxCopy(Dsymbol *s);
33 int addMember(Scope *sc, ScopeDsymbol *sd, int memnum);
34 void semantic(Scope *sc);
35 void semantic2(Scope *sc);
36 void inlineScan();
37 int oneMember(Dsymbol **ps);
38 void toObjFile();
39 char *kind();
40 void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
41 };
42
43 #endif