summaryrefslogtreecommitdiff
path: root/chromium/base/trace_event/optional_trace_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/trace_event/optional_trace_event.h')
-rw-r--r--chromium/base/trace_event/optional_trace_event.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/base/trace_event/optional_trace_event.h b/chromium/base/trace_event/optional_trace_event.h
index ac7636acd9e..90a6e0766f2 100644
--- a/chromium/base/trace_event/optional_trace_event.h
+++ b/chromium/base/trace_event/optional_trace_event.h
@@ -15,6 +15,10 @@
#if BUILDFLAG(OPTIONAL_TRACE_EVENTS_ENABLED)
+#ifndef CR_EXPAND_ARG
+#define CR_EXPAND_ARG(x) x
+#endif
+
#define OPTIONAL_TRACE_EVENT0(...) CR_EXPAND_ARG(TRACE_EVENT0(__VA_ARGS__))
#define OPTIONAL_TRACE_EVENT1(...) CR_EXPAND_ARG(TRACE_EVENT1(__VA_ARGS__))
#define OPTIONAL_TRACE_EVENT2(...) CR_EXPAND_ARG(TRACE_EVENT2(__VA_ARGS__))