From 4403687dc8d505911980b8a96b13701a10f91b70 Mon Sep 17 00:00:00 2001 From: Jean-Philip Desjardins Date: Sun, 29 Dec 2024 14:03:54 -0500 Subject: [PATCH] Use proper definition to remove debug variable in Profiler. --- Source/Profiler.cpp | 2 +- Source/Profiler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Profiler.cpp b/Source/Profiler.cpp index 732e397f18..d2420ed75a 100644 --- a/Source/Profiler.cpp +++ b/Source/Profiler.cpp @@ -85,7 +85,7 @@ void CProfiler::Reset() void CProfiler::SetWorkThread() { -#ifdef _DEBUG +#ifndef NDEBUG m_workThreadId = std::this_thread::get_id(); #endif } diff --git a/Source/Profiler.h b/Source/Profiler.h index dfb1601634..ea4dc01bb9 100644 --- a/Source/Profiler.h +++ b/Source/Profiler.h @@ -46,7 +46,7 @@ class CProfiler : public CSingleton ZoneStack m_zoneStack; TimePoint m_currentTime; -#ifdef _DEBUG +#ifndef NDEBUG std::thread::id m_workThreadId; #endif };