|
|
@ -129,7 +129,7 @@ namespace CppSharp.Generators.CLI |
|
|
|
|
|
|
|
|
|
|
|
public string VisitPointerType(PointerType pointer, TypeQualifiers quals) |
|
|
|
public string VisitPointerType(PointerType pointer, TypeQualifiers quals) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var pointee = pointer.Pointee; |
|
|
|
var pointee = pointer.Pointee.Desugar(); |
|
|
|
|
|
|
|
|
|
|
|
if (pointee is FunctionType) |
|
|
|
if (pointee is FunctionType) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -143,7 +143,7 @@ namespace CppSharp.Generators.CLI |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PrimitiveType primitive; |
|
|
|
PrimitiveType primitive; |
|
|
|
if (pointee.Desugar().IsPrimitiveType(out primitive)) |
|
|
|
if (pointee.IsPrimitiveType(out primitive)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var param = Context.Parameter; |
|
|
|
var param = Context.Parameter; |
|
|
|
if (param != null && (param.IsOut || param.IsInOut)) |
|
|
|
if (param != null && (param.IsOut || param.IsInOut)) |
|
|
@ -152,6 +152,13 @@ namespace CppSharp.Generators.CLI |
|
|
|
return VisitPrimitiveType(primitive, quals) + "*"; |
|
|
|
return VisitPrimitiveType(primitive, quals) + "*"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Enumeration @enum; |
|
|
|
|
|
|
|
if (pointee.IsTagDecl(out @enum)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var typeName = @enum.Visit(this); |
|
|
|
|
|
|
|
return string.Format("{0}*", typeName); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return pointee.Visit(this, quals); |
|
|
|
return pointee.Visit(this, quals); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|