From f7bcc63ea8132a1d5d9613fb9c1757e26fd48c96 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 25 Sep 2025 17:53:57 -0700 Subject: [PATCH] Disable script tracing on non-debug builds --- src/Debug.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Debug.h b/src/Debug.h index 3d256ca4a8..7748beb1e5 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -60,7 +60,13 @@ public: // Returns previous filename. FILE* SetTraceFile(const char* trace_filename); - bool DoTrace() const { return dbgtrace; } + bool DoTrace() const { +#if DEBUG + return dbgtrace; +#else + return false; +#endif + } void TraceOn(); void TraceOff();