Skip to content

Commit

Permalink
Use proper definition to remove debug variable in Profiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Dec 29, 2024
1 parent 7e72389 commit 4403687
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void CProfiler::Reset()

void CProfiler::SetWorkThread()
{
#ifdef _DEBUG
#ifndef NDEBUG
m_workThreadId = std::this_thread::get_id();
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CProfiler : public CSingleton<CProfiler>
ZoneStack m_zoneStack;
TimePoint m_currentTime;

#ifdef _DEBUG
#ifndef NDEBUG
std::thread::id m_workThreadId;
#endif
};
Expand Down

0 comments on commit 4403687

Please sign in to comment.