Browse Source

Change standard type maps to be more specific about its supported generators.

pull/1328/head
João Matos 5 years ago committed by João Matos
parent
commit
237b344f67
  1. 15
      src/Generator/Types/Std/Stdlib.cs

15
src/Generator/Types/Std/Stdlib.cs

@ -91,7 +91,8 @@ namespace CppSharp.Types.Std @@ -91,7 +91,8 @@ namespace CppSharp.Types.Std
}
}
[TypeMap("const char*")]
[TypeMap("const char*", GeneratorKind = GeneratorKind.CSharp)]
[TypeMap("const char*", GeneratorKind = GeneratorKind.CLI)]
public class ConstCharPointer : TypeMap
{
public override Type CLISignatureType(TypePrinterContext ctx)
@ -293,22 +294,26 @@ namespace CppSharp.Types.Std @@ -293,22 +294,26 @@ namespace CppSharp.Types.Std
}
}
[TypeMap("const char[]")]
[TypeMap("const char[]", GeneratorKind = GeneratorKind.CSharp)]
[TypeMap("const char[]", GeneratorKind = GeneratorKind.CLI)]
public class ConstCharArray : ConstCharPointer
{
}
[TypeMap("const wchar_t*")]
[TypeMap("const wchar_t*", GeneratorKind = GeneratorKind.CSharp)]
[TypeMap("const wchar_t*", GeneratorKind = GeneratorKind.CLI)]
public class ConstWCharTPointer : ConstCharPointer
{
}
[TypeMap("const char16_t*")]
[TypeMap("const char16_t*", GeneratorKind = GeneratorKind.CSharp)]
[TypeMap("const char16_t*", GeneratorKind = GeneratorKind.CLI)]
public class ConstChar16TPointer : ConstCharPointer
{
}
[TypeMap("basic_string<char, char_traits<char>, allocator<char>>")]
[TypeMap("basic_string<char, char_traits<char>, allocator<char>>", GeneratorKind = GeneratorKind.CSharp)]
[TypeMap("basic_string<char, char_traits<char>, allocator<char>>", GeneratorKind = GeneratorKind.CLI)]
public class String : TypeMap
{
public override Type CLISignatureType(TypePrinterContext ctx)

Loading…
Cancel
Save