mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
[GDExtension] Fix registration of functions with enum or native pointer return type.
This commit is contained in:
@@ -123,9 +123,9 @@ def generate_version(argcount, const=False, returns=False):
|
||||
callargtext += ","
|
||||
callargtext += " m_ret& r_ret"
|
||||
s = s.replace("$CALLSIBEGIN", "Variant ret = ")
|
||||
s = s.replace("$CALLSIRET", "r_ret = ret;")
|
||||
s = s.replace("$CALLSIRET", "r_ret = VariantCaster<m_ret>::cast(ret);")
|
||||
s = s.replace("$CALLPTRRETPASS", "&ret")
|
||||
s = s.replace("$CALLPTRRET", "r_ret = ret;")
|
||||
s = s.replace("$CALLPTRRET", "r_ret = (m_ret)ret;")
|
||||
else:
|
||||
s = s.replace("$CALLSIBEGIN", "")
|
||||
s = s.replace("$CALLSIRET", "")
|
||||
|
||||
Reference in New Issue
Block a user