Skip to content

Commit

Permalink
trace: add RE_TRACE_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Dec 7, 2023
1 parent 452d062 commit 0bb3ff4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#endif


#ifdef RE_TRACE_ENABLED

struct trace_event {
const char *name;
const char *cat;
Expand Down Expand Up @@ -133,6 +135,7 @@ static void flush_tmr(void *arg)

tmr_start(&trace.flush_tmr, TRACE_FLUSH_TMR, flush_tmr, NULL);
}
#endif


/**
Expand Down

0 comments on commit 0bb3ff4

Please sign in to comment.