diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-08 16:14:15 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-08 16:14:15 +0800 |
commit | 0ab6d527125669ca7a36e5b27ff429c0f402ba77 (patch) | |
tree | 1c7e14e452d563ebbe95acf39f2a7364a3c2d48b /src/common.hpp | |
parent | fcec09900f158aa939eb1c96607aaabf4c8171ef (diff) | |
download | mrust-0ab6d527125669ca7a36e5b27ff429c0f402ba77.tar.gz |
Macro parsing, saving, and evaluating
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp index 59035c4b..545a0adf 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -14,6 +14,19 @@ #include "include/debug.hpp" #include "include/rustic.hpp" // slice and option +template <typename T> +struct LList +{ + LList* m_prev; + T m_item; + + LList(LList* prev, T item): + m_prev(prev), + m_item( ::std::move(item) ) + { + }; +}; + namespace std { template <typename T> |