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
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue