Browse Source

For some reason parts of the generated code don't like MangleAs, so

do MangleAsAttribute instead
pull/1/head
Andreia Gaita 15 years ago
parent
commit
958dd1e412
  1. 2
      src/Mono.VisualC.Code/Atoms/Method.cs

2
src/Mono.VisualC.Code/Atoms/Method.cs

@ -168,7 +168,7 @@ namespace Mono.VisualC.Code.Atoms {
// FIXME: Only add MangleAs attribute if the managed type chosen would mangle differently by default // FIXME: Only add MangleAs attribute if the managed type chosen would mangle differently by default
if (!IsVirtual && !paramStr.Equals (string.Empty)) if (!IsVirtual && !paramStr.Equals (string.Empty))
param.CustomAttributes.Add (new CodeAttributeDeclaration ("MangleAs", new CodeAttributeArgument (new CodePrimitiveExpression (paramStr)))); param.CustomAttributes.Add (new CodeAttributeDeclaration ("MangleAsAttribute", new CodeAttributeArgument (new CodePrimitiveExpression (paramStr))));
method.Parameters.Add (param); method.Parameters.Add (param);
} }

Loading…
Cancel
Save