Browse Source

Use Helpers.SafeIdentifier when sending parameters to marshaling to deal with invalid identifiers.

pull/1/head
triton 13 years ago
parent
commit
53bbc8c04b
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -922,7 +922,7 @@ namespace CppSharp.Generators.CSharp
{ {
var ctx = new CSharpMarshalContext(Driver) var ctx = new CSharpMarshalContext(Driver)
{ {
ReturnVarName = param.Name, ReturnVarName = Helpers.SafeIdentifier(param.Name),
ReturnType = param.QualifiedType ReturnType = param.QualifiedType
}; };

Loading…
Cancel
Save