From 9bfebe9f9b8f919a13cd0093fa41f10df0073e9c Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 15 Mar 2013 14:14:52 +0000 Subject: [PATCH] Added type signatures for std::strings in the C# backend. --- src/Generator/Types/Std/Stdlib.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Generator/Types/Std/Stdlib.cs b/src/Generator/Types/Std/Stdlib.cs index 259a2159..0787a159 100644 --- a/src/Generator/Types/Std/Stdlib.cs +++ b/src/Generator/Types/Std/Stdlib.cs @@ -1,3 +1,5 @@ +using System; + namespace Cxxi.Types.Std { [TypeMap("va_list")] @@ -26,6 +28,21 @@ namespace Cxxi.Types.Std { ctx.Return.Write("marshalString({0})", ctx.ReturnVarName); } + + public override string CSharpSignature() + { + return "string"; + } + + public override void CSharpMarshalToNative(MarshalContext ctx) + { + throw new NotImplementedException(); + } + + public override void CSharpMarshalToManaged(MarshalContext ctx) + { + throw new NotImplementedException(); + } } [TypeMap("std::wstring")]