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

[common] add convenience LOG macro

parent 39390c12
No related branches found
No related tags found
1 merge request!68dailywork-ftschindler
......@@ -127,6 +127,15 @@ public:
}; // class DefaultLogger
/// \brief Convenience macro for enrivonments with a logger variable
#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(type) \
if (logger.type##_enabled()) \
logger.type()
#endif
/// \brief Convenience macro for classes with a logger member
#ifdef LOG_
# error Macro LOG_ already defined, open an issue at https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt/-/issues !
......
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