root/trunk/src/staticassert.h

Revision 189, 1.0 kB (checked in by braddr, 3 years ago)

add property svn:eol-style = native to all files

  • Property svn:eol-style set to native
Line 
1 // Compiler implementation of the D programming language
2 // Copyright (c) 1999-2006 by Digital Mars
3 // All Rights Reserved
4 // written by Walter Bright
5 // http://www.digitalmars.com
6 // License for redistribution is by either the Artistic License
7 // in artistic.txt, or the GNU General Public License in gnu.txt.
8 // See the included readme.txt for details.
9
10 #ifndef DMD_STATICASSERT_H
11 #define DMD_STATICASSERT_H
12
13 #ifdef __DMC__
14 #pragma once
15 #endif /* __DMC__ */
16
17 #include "dsymbol.h"
18
19 struct Expression;
20 #ifdef _DH
21 struct HdrGenState;
22 #endif
23
24 struct StaticAssert : Dsymbol
25 {
26     Expression *exp;
27     Expression *msg;
28
29     StaticAssert(Loc loc, Expression *exp, Expression *msg);
30
31     Dsymbol *syntaxCopy(Dsymbol *s);
32     int addMember(Scope *sc, ScopeDsymbol *sd, int memnum);
33     void semantic(Scope *sc);
34     void semantic2(Scope *sc);
35     void inlineScan();
36     int oneMember(Dsymbol **ps);
37     void toObjFile(int multiobj);
38     const char *kind();
39     void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
40 };
41
42 #endif
Note: See TracBrowser for help on using the browser.