Fix some things that C++ doesn't like so we don't lose the possibility to use the...
[satune.git] / src / AST / boolean.h
index 065ba4ac2590696b7a107e1214019aff795c5c91..d00a82cf123fa325eb1d2eadef911272df66302d 100644 (file)
@@ -8,6 +8,8 @@
                This is a little sketchy, but apparently legit.
                https://www.python.org/dev/peps/pep-3123/ */
 
+#define GETBOOLEANTYPE(o) (((Boolean *)(o))->btype)
+
 struct Boolean {
        BooleanType btype;
 };
@@ -42,6 +44,6 @@ struct BooleanComp {
 
 Boolean * allocBoolean(VarType t);
 Boolean * allocBooleanOrder(Order * order, uint64_t first, uint64_t second);
-void deleteBoolean(Boolean * this);
+void deleteBoolean(Boolean * This);
 
 #endif