Commit a0c5f510 authored by Martin Marinov's avatar Martin Marinov

Fix the definitions for JOURNAL_[METHOD|FUNCTION]_RETURN_LINK when JOURNAL_ON is disabled

parent 16cbb948
......@@ -585,13 +585,13 @@ template <typename T> auto argument_link(T& _vrbl, const char* const _name,
#define JOURNAL_METHOD_RETURN_LINK(NAME, IMPL, ...) \
::Journal::ReturnLinkT<decltype(IMPL)> JL(rtrn)(NAME); \
JOURNAL(method, JL(rtrn), this, ##__VA_ARGS__) \
return JL(rtrn) = IMPL;
JOURNAL(method, JL(rtrn), this, ##__VA_ARGS__); \
return JL(rtrn) = IMPL
#define JOURNAL_FUNCTION_RETURN_LINK(NAME, IMPL, ...) \
::Journal::ReturnLinkT<decltype(IMPL)> JL(rtrn)(NAME); \
JOURNAL(function, JL(rtrn), ##__VA_ARGS__) \
return JL(rtrn) = IMPL;
JOURNAL(function, JL(rtrn), ##__VA_ARGS__); \
return JL(rtrn) = IMPL
#define JOURNAL_PATH_TRANSFORM(TRNS) \
::Journal::stream().set_path_transform(TRNS)
......@@ -621,7 +621,6 @@ template <typename T> auto argument_link(T& _vrbl, const char* const _name,
#define JOURNAL_DESTRUCTOR
#define JOURNAL_METHOD_OUTCOME(...)
#define JOURNAL_METHOD_VOID(...)
#define JOURNAL_METHOD_RETURN_LINK(VRBL, ...)
#define JOURNAL_FUNCTION(VRBL, ...)
#define JOURNAL_FUNCTION_VOID(...)
#define JOURNAL_FUNCTION_OUTCOME(...)
......@@ -641,5 +640,8 @@ template <typename T> auto argument_link(T& _vrbl, const char* const _name,
#define JOURNAL_TYPE_NAME(TYPE)
#define JOURNAL_METHOD_RETURN_LINK(NAME, IMPL, ...) return IMPL
#define JOURNAL_FUNCTION_RETURN_LINK(NAME, IMPL, ...) return IMPL
#endif // JOURNAL_ON
#endif // BASE_JOURNAL_STREAM_HH_INCLUDED
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