Fix GodotProfileZone with tracy backend failing with shadowed variable names.

This commit is contained in:
Lukas Tenbrink 2025-11-15 20:03:14 +01:00
parent ef34c3d534
commit 98caaebb72
3 changed files with 7 additions and 5 deletions

View file

@ -30,10 +30,7 @@
#pragma once
#define _GD_VARNAME_CONCAT_B_(m_ignore, m_name) m_name
#define _GD_VARNAME_CONCAT_A_(m_a, m_b, m_c) _GD_VARNAME_CONCAT_B_(hello there, m_a##m_b##m_c)
#define _GD_VARNAME_CONCAT_(m_a, m_b, m_c) _GD_VARNAME_CONCAT_A_(m_a, m_b, m_c)
#define GD_UNIQUE_NAME(m_name) _GD_VARNAME_CONCAT_(m_name, _, __COUNTER__)
#include "core/typedefs.h"
// unreachable