From 16b5de038df5660ea12f0ebdbbec75480598b126 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 6 Jul 2024 13:13:18 +0200 Subject: [PATCH] feat: GDRESOURCETYPE and GDENUMTYPE no longer stringify argument --- godot_macros.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godot_macros.hpp b/godot_macros.hpp index bc1d47c..35d734a 100644 --- a/godot_macros.hpp +++ b/godot_macros.hpp @@ -73,8 +73,8 @@ * * Use when registering properties of arrays of resource classes. */ -#define GDRESOURCETYPE(Class_) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, #Class_) -#define GDENUMTYPE(EnumString_) godot::vformat("%s/%s:%s", godot::Variant::INT, godot::PROPERTY_HINT_ENUM, #EnumString_) +#define GDRESOURCETYPE(Class_) godot::vformat("%s/%s:%s", godot::Variant::OBJECT, godot::PROPERTY_HINT_RESOURCE_TYPE, Class_) +#define GDENUMTYPE(EnumString_) godot::vformat("%s/%s:%s", godot::Variant::INT, godot::PROPERTY_HINT_ENUM, EnumString_) /*! \def GDEDITORONLY() * \brief Execute the rest of the function only if currently running as editor.