diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-08 15:59:40 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-08 15:59:40 +0800 |
commit | 0c50c6f50831bc79c12aed4e3a83ab8919661d34 (patch) | |
tree | af813b9d2ad926cba7bd0958f5eed6e3a5d9230f /src/include | |
parent | f2e025e7e7cc1e00407c2ad9a28afe6e318bdbdc (diff) | |
download | mrust-0c50c6f50831bc79c12aed4e3a83ab8919661d34.tar.gz |
HIR Typecheck - Starting work on Fn* traits
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/debug.hpp | 3 | ||||
-rw-r--r-- | src/include/tagged_union.hpp | 1 |
2 files changed, 2 insertions, 2 deletions
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()) {/* |