mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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:
commit
40cba9094f
3 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue