feat: godot_macros, GDGAMEONLY and GDEDITORONLY now eat their semicolons

stripped
Sara 2024-02-25 19:46:49 +01:00
parent 76fa584333
commit 988d39bdb4
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
#define GDRESOURCETYPE(_Class) vformat("%s/%s:%s", Variant::OBJECT, PROPERTY_HINT_RESOURCE_TYPE, #_Class) #define GDRESOURCETYPE(_Class) vformat("%s/%s:%s", Variant::OBJECT, PROPERTY_HINT_RESOURCE_TYPE, #_Class)
#define GDEDITORONLY() if(!Engine::get_singleton()->is_editor_hint()) return #define GDEDITORONLY() if(!Engine::get_singleton()->is_editor_hint()) return;
#define GDGAMEONLY() if(Engine::get_singleton()->is_editor_hint()) return #define GDGAMEONLY() if(Engine::get_singleton()->is_editor_hint()) return;
#endif // !UC_GODOT_MACROS_H #endif // !UC_GODOT_MACROS_H