From 0c50c6f50831bc79c12aed4e3a83ab8919661d34 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 8 Jun 2016 15:59:40 +0800 Subject: HIR Typecheck - Starting work on Fn* traits --- src/include/debug.hpp | 3 +-- src/include/tagged_union.hpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/debug.hpp b/src/include/debug.hpp index 2b3b1bee..8aace983 100644 --- a/src/include/debug.hpp +++ b/src/include/debug.hpp @@ -67,10 +67,9 @@ public: } ~TraceLog() { UNINDENT(); - DEBUG("<< " << m_tag); if(debug_enabled()) { auto& os = debug_output(g_debug_indent_level, __FUNCTION__); - os << "<<" << m_tag; + os << " << " << m_tag; m_ret(os); os << ::std::endl; } diff --git a/src/include/tagged_union.hpp b/src/include/tagged_union.hpp index fcf924c8..9762937e 100644 --- a/src/include/tagged_union.hpp +++ b/src/include/tagged_union.hpp @@ -96,6 +96,7 @@ #define MAXS13(a1,a2,a3,a4,a5,a6,a7, b1,b2,b3,b4,b5,b6) MAX2(MAXS7(a1,a2,a3,a4,a5,a6,a7), MAXS6(b1,b2,b3,b4,b5,b6)) #define MAXS14(a1,a2,a3,a4,a5,a6,a7, b1,b2,b3,b4,b5,b6,b7) MAX2(MAXS7(a1,a2,a3,a4,a5,a6,a7), MAXS7(b1,b2,b3,b4,b5,b6,b7)) +// TODO: use `decltype` in place of the `class` argument to TU_MATCH/TU_IFLET // "match"-like statement // TU_MATCH(Class, m_data, ent, (Variant, CODE), (Variant2, CODE)) #define TU_MATCH(CLASS, VAR, NAME, ...) switch( (TU_FIRST VAR).tag()) {/* -- cgit v1.2.3