Commit 8be1af6c authored by Martin Marinov's avatar Martin Marinov

Add JOURNAL_ADD_TYPE_INTERNAL_TRACKED, ab internal type that is tracked by...

Add JOURNAL_ADD_TYPE_INTERNAL_TRACKED,  ab internal type that is tracked by the name book at all time
parent a82a3715
......@@ -328,6 +328,18 @@ template <typename T> Data define_in_language(Stream& _strm, const T& _arg)
JOURNAL_TYPE_NAME(TYPE); \
template <> Data define(Stream&, TYPE const&) { return Data(); }
// an internal type that is tracked by the name book at all time
#define JOURNAL_ADD_TYPE_INTERNAL_TRACKED(TYPE, VRBL) \
JOURNAL_ADD_TYPE_INTERNAL(TYPE); \
template <> Data define(Stream& _strm, TYPE* const& VRBL) \
{ \
return Data(_strm.retrieve_unique_name(key(VRBL))); \
} \
template <> Data define(Stream& _strm, TYPE const* const& VRBL) \
{ \
return Data(_strm.retrieve_unique_name(key(VRBL))); \
}
#define JOURNAL_ADD_TYPE_EXTERNAL(TYPE, VRBL) \
JOURNAL_TYPE_NAME(TYPE); \
template <> Data define(Stream& _strm, TYPE* const& VRBL) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment