mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-09 10:35:43 +00:00
Merge from upstream
This commit is contained in:
parent
9758c7ab8a
commit
f861aeb27b
|
@ -408,9 +408,12 @@ namespace GtkSharp.Generation {
|
|||
|
||||
public override string[] Finish {
|
||||
get {
|
||||
string[] result = new string [2];
|
||||
result [0] = CallName + " = " + FromNative ("native_" + CallName) + ";";
|
||||
result [1] = (Generatable as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
|
||||
string[] result = new string [PassAs == string.Empty ? 1 : 2];
|
||||
int i = 0;
|
||||
if (PassAs != string.Empty) {
|
||||
result [i++] = CallName + " = " + FromNative ("native_" + CallName) + ";";
|
||||
}
|
||||
result [i++] = (Generatable as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue