diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-01-25 03:51:32 +0100 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-01-26 15:51:34 +0100 |
commit | cac7a784d6423873acf3d356b99eea903ddc9633 (patch) | |
tree | 0f182ccadede22ae27239f520d967b03c97b6925 /core/object/make_virtuals.py | |
parent | 9de0c73e4529afe3ea060332a03e17cc0581efd8 (diff) |
Add `GodotTypeInfo::Metadata` to `MethodInfo`
Diffstat (limited to 'core/object/make_virtuals.py')
-rw-r--r-- | core/object/make_virtuals.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/object/make_virtuals.py b/core/object/make_virtuals.py index 0ee95835a6..18f27ae4a4 100644 --- a/core/object/make_virtuals.py +++ b/core/object/make_virtuals.py @@ -72,6 +72,7 @@ def generate_version(argcount, const=False, returns=False): s = s.replace("$RVOID", "(void)r_ret;") # If required, may lead to uninitialized errors s = s.replace("$CALLPTRRETDEF", "PtrToArg<m_ret>::EncodeT ret;") method_info += "\tmethod_info.return_val = GetTypeInfo<m_ret>::get_class_info();\\\n" + method_info += "\tmethod_info.return_val_metadata = GetTypeInfo<m_ret>::METADATA;\\\n" else: s = s.replace("$RET", "") s = s.replace("$RVOID", "") @@ -113,6 +114,9 @@ def generate_version(argcount, const=False, returns=False): ) callptrargsptr += "&argval" + str(i + 1) method_info += "\tmethod_info.arguments.push_back(GetTypeInfo<m_type" + str(i + 1) + ">::get_class_info());\\\n" + method_info += ( + "\tmethod_info.arguments_metadata.push_back(GetTypeInfo<m_type" + str(i + 1) + ">::METADATA);\\\n" + ) if argcount: callsiargs += "};\\\n" |