Commit 87bc7467 authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Merge branch 'development/fix-trace-stack' into 'dev'

Fix double macro expansion in trace.

See merge request !10
parents 7107e0f0 f5c9018e
......@@ -13,11 +13,13 @@
#include <string>
#include <thread>
#define mln_entering(NAME) mln::trace::scoped_trace __mln_trace__COUNTER__(NAME);
#define mln_concat(A,B) A ## B
#define mln_entering_expand(NAME,COUNTER) mln::trace::scoped_trace mln_concat(__mln_trace, COUNTER) (NAME);
#define mln_entering(NAME) mln_entering_expand(NAME, __COUNTER__)
#define mln_exiting() ;
#define mln_scoped_entering(NAME) mln::trace::scoped_trace __mln_trace__COUNTER__(NAME);
#define mln_scoped_entering(NAME) mln_entering_expand(NAME, __COUNTER__)
namespace mln
{
......
Supports Markdown
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