diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-14 00:08:59 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-14 00:08:59 +0800 |
commit | 87f293aeef783ecafef49ed280709d125f9c1f4f (patch) | |
tree | aa6e4e1386f1083cc1f94167dfb00b1b8756cbb9 /src/ast/ast.cpp | |
parent | e353e6f88b4a694e1e93a1f09c84d086cc4a826d (diff) | |
download | mrust-87f293aeef783ecafef49ed280709d125f9c1f4f.tar.gz |
Macro Rules - Rewrite, take 3 - Incomplete
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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,
|