Commit ad7c1e2e authored by Martin Marinov's avatar Martin Marinov

Add DEB_ref and DEB_refc to reference the local deb context when capturing in lambdas

parent 476c3825
......@@ -22,6 +22,11 @@
#define DEB_error(AA) {}
#define DEB_error_if(CC, AA) {}
#define DEB_os_str
#define DEB_ref
#define DEB_refc
#else // DEB_ON
#include "Base/Code/CodeLink.hh"
......@@ -174,5 +179,9 @@ std::string to_string(const T& _t)
#define DEB_os_str(AA) Debug::to_string(AA)
// reference the local deb context when capturing in lambdas
#define DEB_ref &deb
#define DEB_refc &deb,
#endif // DEB_ON
#endif // BASE_DEBOUT_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