Browse Source

Fix marshaling for wchar_t in C++ generator mode.

pull/1329/head
João Matos 6 years ago committed by João Matos
parent
commit
c7db119d47
  1. 5
      src/Generator/Generators/C/CppMarshal.cs

5
src/Generator/Generators/C/CppMarshal.cs

@ -464,11 +464,12 @@ namespace CppSharp.Generators.Cpp
case PrimitiveType.ULongLong: case PrimitiveType.ULongLong:
case PrimitiveType.Float: case PrimitiveType.Float:
case PrimitiveType.Double: case PrimitiveType.Double:
case PrimitiveType.WideChar:
Context.Return.Write(Context.Parameter.Name); Context.Return.Write(Context.Parameter.Name);
return true; return true;
default:
throw new NotImplementedException();
} }
return false;
} }
public override bool VisitTypedefType(TypedefType typedef, TypeQualifiers quals) public override bool VisitTypedefType(TypedefType typedef, TypeQualifiers quals)

Loading…
Cancel
Save