Skip to content

Commit c7db119

Browse files
committed
Fix marshaling for wchar_t in C++ generator mode.
1 parent 925783a commit c7db119

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Generator/Generators/C/CppMarshal.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,12 @@ public bool VisitPrimitiveType(PrimitiveType primitive)
464464
case PrimitiveType.ULongLong:
465465
case PrimitiveType.Float:
466466
case PrimitiveType.Double:
467+
case PrimitiveType.WideChar:
467468
Context.Return.Write(Context.Parameter.Name);
468469
return true;
470+
default:
471+
throw new NotImplementedException();
469472
}
470-
471-
return false;
472473
}
473474

474475
public override bool VisitTypedefType(TypedefType typedef, TypeQualifiers quals)

0 commit comments

Comments
 (0)