projects
/
satune.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Run tabbing pass
[satune.git]
/
src
/
AST
/
astnode.h
diff --git
a/src/AST/astnode.h
b/src/AST/astnode.h
index 9aaee86c3f680ca872700b664f0ef88dd48d247f..749bf8e7ed596c1abcd2434a4bbf753f464025c2 100644
(file)
--- a/
src/AST/astnode.h
+++ b/
src/AST/astnode.h
@@
-3,9
+3,11
@@
#include "classlist.h"
#include "ops.h"
-struct ASTNode {
+class ASTNode {
+public:
+ ASTNode(ASTNodeType _type) : type(_type) {}
ASTNodeType type;
+ MEMALLOC;
};
-#define GETASTNODETYPE(o) (((ASTNode *) o)->type)
#endif