Merge pull request #112823 from Ivorforce/tracy-unique-name

Fix `GodotProfileZone` with tracy backend failing with shadowed variable name warnings
This commit is contained in:
Thaddeus Crews
2025-11-17 19:36:15 -06:00
3 changed files with 7 additions and 5 deletions

View File

@ -51,7 +51,7 @@
// Define tracing macros.
#define GodotProfileFrameMark FrameMark
#define GodotProfileZone(m_zone_name) ZoneScopedN(m_zone_name)
#define GodotProfileZone(m_zone_name) ZoneNamedN(GD_UNIQUE_NAME(__godot_tracy_szone_), m_zone_name, true)
#define GodotProfileZoneGroupedFirst(m_group_name, m_zone_name) ZoneNamedN(__godot_tracy_zone_##m_group_name, m_zone_name, true)
#define GodotProfileZoneGroupedEndEarly(m_group_name, m_zone_name) __godot_tracy_zone_##m_group_name.~ScopedZone();
#ifndef TRACY_CALLSTACK