Skip to content

Commit

Permalink
Merge pull request #3631 from yebblies/classconstants
Browse files Browse the repository at this point in the history
[DDMD] Move #defined constants outside class declaration
  • Loading branch information
9rnsr committed Jun 7, 2014
2 parents 60d7cb5 + 105a939 commit 3662ce8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/declaration.h
Expand Up @@ -555,6 +555,11 @@ void add_builtin(const char *mangle, builtin_fp fp);
void builtin_init();
void buildClosure(FuncDeclaration *fd, IRState *irs);

#define FUNCFLAGpurityInprocess 1 // working on determining purity
#define FUNCFLAGsafetyInprocess 2 // working on determining safety
#define FUNCFLAGnothrowInprocess 4 // working on determining nothrow
#define FUNCFLAGnogcInprocess 8 // working on determining @nogc

class FuncDeclaration : public Declaration
{
public:
Expand Down Expand Up @@ -631,10 +636,6 @@ class FuncDeclaration : public Declaration
// called this one

unsigned flags;
#define FUNCFLAGpurityInprocess 1 // working on determining purity
#define FUNCFLAGsafetyInprocess 2 // working on determining safety
#define FUNCFLAGnothrowInprocess 4 // working on determining nothrow
#define FUNCFLAGnogcInprocess 8 // working on determining @nogc

FuncDeclaration(Loc loc, Loc endloc, Identifier *id, StorageClass storage_class, Type *type);
Dsymbol *syntaxCopy(Dsymbol *);
Expand Down

0 comments on commit 3662ce8

Please sign in to comment.