|
|
|
@ -740,7 +740,7 @@ namespace CppSharp.Generators.CLI |
|
|
|
var @params = GenerateFunctionParamsMarshal(function.Parameters, function); |
|
|
|
var @params = GenerateFunctionParamsMarshal(function.Parameters, function); |
|
|
|
|
|
|
|
|
|
|
|
if (needsReturn) |
|
|
|
if (needsReturn) |
|
|
|
Write("auto {0}ret = ",(function.ReturnType.Type.IsReference())? "&": string.Empty); |
|
|
|
Write("auto {0}__ret = ",(function.ReturnType.Type.IsReference())? "&": string.Empty); |
|
|
|
|
|
|
|
|
|
|
|
if (!IsNativeFunctionOrStaticMethod(function)) |
|
|
|
if (!IsNativeFunctionOrStaticMethod(function)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -799,8 +799,8 @@ namespace CppSharp.Generators.CLI |
|
|
|
{ |
|
|
|
{ |
|
|
|
var ctx = new MarshalContext(Driver) |
|
|
|
var ctx = new MarshalContext(Driver) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ArgName = "ret", |
|
|
|
ArgName = "__ret", |
|
|
|
ReturnVarName = "ret", |
|
|
|
ReturnVarName = "__ret", |
|
|
|
ReturnType = retType |
|
|
|
ReturnType = retType |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|