diff options
author | kobewi <kobewi4e@gmail.com> | 2023-09-04 17:01:33 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-05-11 18:53:08 +0200 |
commit | a262d2d8811a43c906a4cac55b7126ebec7699be (patch) | |
tree | 0507fff0aed8778e71a2afc0a2d4ac15184e7803 /core/core_string_names.h | |
parent | 916ea002c15e82879f3eada7c635daaecccc9e35 (diff) | |
download | redot-engine-a262d2d8811a43c906a4cac55b7126ebec7699be.tar.gz |
Add shorthand for using singleton string names
Diffstat (limited to 'core/core_string_names.h')
-rw-r--r-- | core/core_string_names.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/core_string_names.h b/core/core_string_names.h index 1c77cef567..d7ddc39f5e 100644 --- a/core/core_string_names.h +++ b/core/core_string_names.h @@ -50,12 +50,10 @@ public: static CoreStringNames *singleton; - StringName _free; + StringName free_; // "free", conflict with C++ keyword. StringName changed; - StringName _script; + StringName script; StringName script_changed; - StringName ___pdcdata; - StringName __getvar; StringName _iter_init; StringName _iter_next; StringName _iter_get; @@ -98,4 +96,6 @@ public: StringName property_list_changed; }; +#define CoreStringName(m_name) CoreStringNames::get_singleton()->m_name + #endif // CORE_STRING_NAMES_H |