Skip to content
Snippets Groups Projects
Commit cdf53d0e authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[common.timedlogging] add LOG__ macro

parent c3b3982b
No related branches found
No related tags found
Loading
......@@ -102,13 +102,21 @@ public:
#ifdef LOG_
# error Macro LOG_ already defined, open an issue at https://github.com/dune-community/dune-xt-common/issues/new !
# error Macro LOG_ already defined, open an issue at https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt/-/issues !
#else
# define LOG_(type) \
if (this->logger.type##_enabled) \
this->logger.type()
#endif
#ifdef LOG__
# error Macro LOG_ already defined, open an issue at https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt/-/issues !
#else
# define LOG__(base, type) \
if (base ::logger.type##_enabled) \
base ::logger.type()
#endif
template <typename T = void>
class WithLogger
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment