mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-04-01 23:16:52 +00:00
generator: fixed optional array parameters
This commit is contained in:
parent
5eea00f705
commit
c3f7b8e32b
|
@ -149,7 +149,9 @@ namespace GtkSharp.Generation {
|
|||
|
||||
result [i] = p.PassAs != "" ? p.PassAs + " " : "";
|
||||
if (p.IsOptional && p.PassAs == String.Empty) {
|
||||
if (p.Generatable is StructGen || p.Generatable is BoxedGen)
|
||||
if (p.IsArray)
|
||||
result [i++] += "null";
|
||||
else if (p.Generatable is StructGen || p.Generatable is BoxedGen)
|
||||
result [i++] += p.CSType + ".Zero";
|
||||
else if (p.CSType == "System.IntPtr")
|
||||
result [i++] += "System.IntPtr.Zero";
|
||||
|
|
Loading…
Reference in a new issue