comparison dmd2/staticassert.h @ 758:f04dde6e882c

Added initial D2 support, D2 frontend and changes to codegen to make things compile.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 11 Nov 2008 01:38:48 +0100
parents
children
comparison
equal deleted inserted replaced
757:2c730d530c98 758:f04dde6e882c
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(int multiobj);
39 const char *kind();
40 void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
41 };
42
43 #endif