diff options
author | David Snopek <dsnopek@gmail.com> | 2023-10-09 16:59:29 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2023-10-09 16:59:29 -0500 |
commit | 3d814f9e4a7d8a3983970928406ed2eba6ac8241 (patch) | |
tree | 064f1eb4ac9214ba0f17271389317852f5fb3962 /binding_generator.py | |
parent | ef2f63a00c5496cc325e8546acd743787e87a83d (diff) | |
download | redot-cpp-3d814f9e4a7d8a3983970928406ed2eba6ac8241.tar.gz |
Use the new `string_name_new_with_latin1_chars` function to improve StringName construction performance
Diffstat (limited to 'binding_generator.py')
-rw-r--r-- | binding_generator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binding_generator.py b/binding_generator.py index 9c3284d..d3e4cef 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -520,7 +520,10 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl # Special cases. if class_name == "String" or class_name == "StringName" or class_name == "NodePath": - result.append(f"\t{class_name}(const char *from);") + if class_name == "StringName": + result.append(f"\t{class_name}(const char *from, bool p_static = false);") + else: + result.append(f"\t{class_name}(const char *from);") result.append(f"\t{class_name}(const wchar_t *from);") result.append(f"\t{class_name}(const char16_t *from);") result.append(f"\t{class_name}(const char32_t *from);") |