feat: GDRESOURCETYPE and GDENUMTYPE no longer stringify argument

main
Sara 2024-07-06 13:13:18 +02:00
parent 8b670b309e
commit 16b5de038d
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@
* *
* Use when registering properties of arrays of resource classes. * 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 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 GDENUMTYPE(EnumString_) godot::vformat("%s/%s:%s", godot::Variant::INT, godot::PROPERTY_HINT_ENUM, EnumString_)
/*! \def GDEDITORONLY() /*! \def GDEDITORONLY()
* \brief Execute the rest of the function only if currently running as editor. * \brief Execute the rest of the function only if currently running as editor.