From 87f293aeef783ecafef49ed280709d125f9c1f4f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 14 Jul 2016 00:08:59 +0800 Subject: Macro Rules - Rewrite, take 3 - Incomplete --- src/ast/ast.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ast/ast.cpp') diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 8af991c0..00c4b39b 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -573,7 +573,7 @@ SERIALISE_TYPE(TypeParam::, "AST_TypeParam", { return os; } - +#if 0 #define SERIALISE_TU_ARM(CLASS, NAME, TAG, ...) case CLASS::TAG_##TAG: { *this = CLASS::make_##TAG({}); auto& NAME = this->as_##TAG(); (void)&NAME; __VA_ARGS__ } break; #define SERIALISE_TU_ARMS(CLASS, NAME, ...) TU_GMA(__VA_ARGS__)(SERIALISE_TU_ARM, (CLASS, NAME), __VA_ARGS__) #define SERIALISE_TU(PATH, TAG, NAME, ...) \ @@ -584,6 +584,7 @@ SERIALISE_TYPE(TypeParam::, "AST_TypeParam", { }, {\ PATH::Tag tag; s % tag; switch(tag) { case PATH::TAGDEAD: throw ""; SERIALISE_TU_ARMS(PATH, NAME, __VA_ARGS__) } \ }) +#endif SERIALISE_TU(GenericBound, "GenericBound", ent, (Lifetime, -- cgit v1.2.3