Run tabbing pass
[satune.git] / src / AST / astnode.h
index 9aaee86c3f680ca872700b664f0ef88dd48d247f..749bf8e7ed596c1abcd2434a4bbf753f464025c2 100644 (file)
@@ -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