Skip to content

Commit 867bfdb

Browse files
committed
Refactoring: Replaced prints by tracing in symbolresolver
1 parent 7cd5b4a commit 867bfdb

File tree

5 files changed

+192
-156
lines changed

5 files changed

+192
-156
lines changed

src/docnode.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
#include "trace.h"
3939
#include "anchor.h"
4040

41+
#if !ENABLE_DOCPARSER_TRACING
42+
#undef AUTO_TRACE
43+
#undef AUTO_TRACE_ADD
44+
#undef AUTO_TRACE_EXIT
45+
#define AUTO_TRACE(...) (void)0
46+
#define AUTO_TRACE_ADD(...) (void)0
47+
#define AUTO_TRACE_EXIT(...) (void)0
48+
#endif
49+
4150
#define INTERNAL_ASSERT(x) do {} while(0)
4251
//#define INTERNAL_ASSERT(x) if (!(x)) TRACE("INTERNAL_ASSERT({}) failed retval={:#x}: file={} line={}",#x,retval,__FILE__,__LINE__)
4352

src/docparser.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@
3939
#include "indexlist.h"
4040
#include "trace.h"
4141

42+
#if !ENABLE_DOCPARSER_TRACING
43+
#undef AUTO_TRACE
44+
#undef AUTO_TRACE_ADD
45+
#undef AUTO_TRACE_EXIT
46+
#define AUTO_TRACE(...) (void)0
47+
#define AUTO_TRACE_ADD(...) (void)0
48+
#define AUTO_TRACE_EXIT(...) (void)0
49+
#endif
50+
51+
4252
//---------------------------------------------------------------------------
4353

4454
IDocParserPtr createDocParser()

src/markdown.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@
5252
#include "trace.h"
5353
#include "anchor.h"
5454

55+
#if !ENABLE_MARKDOWN_TRACING
56+
#undef AUTO_TRACE
57+
#undef AUTO_TRACE_ADD
58+
#undef AUTO_TRACE_EXIT
59+
#define AUTO_TRACE(...) (void)0
60+
#define AUTO_TRACE_ADD(...) (void)0
61+
#define AUTO_TRACE_EXIT(...) (void)0
62+
#endif
63+
5564
enum class ExplicitPageResult
5665
{
5766
explicitPage, /**< docs start with a page command */

0 commit comments

Comments
 (0)