summaryrefslogtreecommitdiffstats
path: root/binding_generator.py
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2018-11-19 21:29:03 +1100
committerGitHub <noreply@github.com>2018-11-19 21:29:03 +1100
commitcec7c2a2237ada0eb003c4a91bcbd06cdee849d6 (patch)
tree3a36d405115d7a356315ba2ab5708844b75e8898 /binding_generator.py
parente83fd994f8726bfe981fb9b0814c57fb26fadbf6 (diff)
parentec5d718191aff1fea906d8a03b0fc4100c77afd5 (diff)
downloadredot-cpp-cec7c2a2237ada0eb003c4a91bcbd06cdee849d6.tar.gz
Merge pull request #197 from bruvzg/fix_icall_int64_and_tagbd_reg
Fix ptrcall int size and TagDB registration for classes with "_" in the name.
Diffstat (limited to 'binding_generator.py')
-rw-r--r--binding_generator.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/binding_generator.py b/binding_generator.py
index 3137660..c26c9eb 100644
--- a/binding_generator.py
+++ b/binding_generator.py
@@ -541,6 +541,8 @@ def generate_icall_header(icalls):
if is_core_type(arg):
method_signature += arg + "&"
+ elif arg == "int":
+ method_signature += "int64_t "
elif arg == "float":
method_signature += "double "
elif is_primitive(arg):
@@ -594,6 +596,8 @@ def generate_icall_implementation(icalls):
if is_core_type(arg):
method_signature += arg + "& "
+ elif arg == "int":
+ method_signature += "int64_t "
elif arg == "float":
method_signature += "double "
elif is_primitive(arg):
@@ -680,7 +684,7 @@ def generate_type_registry(classes):
if base_class_name == "":
base_class_type_hash = "0"
- source.append("\tgodot::_TagDB::register_global_type(\"" + class_name + "\", " + class_type_hash + ", " + base_class_type_hash + ");")
+ source.append("\tgodot::_TagDB::register_global_type(\"" + c["name"] + "\", " + class_type_hash + ", " + base_class_type_hash + ");")
source.append("}")