Fix previous compiler crash without breaking functions with auto return types
[delight/core.git] / dmd2 / staticassert.h
bloba38078d3f37b950dd3ac3bac34a3c68c2adcc8d3
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.
11 #ifndef DMD_STATICASSERT_H
12 #define DMD_STATICASSERT_H
14 #ifdef __DMC__
15 #pragma once
16 #endif /* __DMC__ */
18 #include "dsymbol.h"
20 struct Expression;
21 #ifdef _DH
22 struct HdrGenState;
23 #endif
25 struct StaticAssert : Dsymbol
27 Expression *exp;
28 Expression *msg;
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);
36 void inlineScan();
37 int oneMember(Dsymbol **ps);
38 void toObjFile(int multiobj);
39 char *kind();
40 void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
43 #endif