|
|
|
|
@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
|
|
|
|
|
using CppSharp.AST; |
|
|
|
|
using CppSharp.AST.Extensions; |
|
|
|
|
using CppSharp.Generators; |
|
|
|
|
using CppSharp.Generators.AST; |
|
|
|
|
using CppSharp.Generators.CLI; |
|
|
|
|
using CppSharp.Generators.CSharp; |
|
|
|
|
|
|
|
|
|
@ -312,4 +313,24 @@ namespace CppSharp.Types.Std
@@ -312,4 +313,24 @@ namespace CppSharp.Types.Std
|
|
|
|
|
marshalCtxName, ctx.Parameter.Name); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[TypeMap("std::nullptr_t")] |
|
|
|
|
public class NullPtr : TypeMap |
|
|
|
|
{ |
|
|
|
|
public override bool DoesMarshalling { get { return false; } } |
|
|
|
|
|
|
|
|
|
public override void CLITypeReference(CLITypeReferenceCollector collector, |
|
|
|
|
ASTRecord<Declaration> loc) |
|
|
|
|
{ |
|
|
|
|
var typeRef = collector.GetTypeReference(loc.Value); |
|
|
|
|
|
|
|
|
|
var include = new Include |
|
|
|
|
{ |
|
|
|
|
File = "cstddef", |
|
|
|
|
Kind = Include.IncludeKind.Angled, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
typeRef.Include = include; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|