Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
@ -447,7 +447,8 @@ namespace CppSharp.AST
return Declaration.Type.Equals(typedef == null ? obj : typedef.Declaration.Type);
}
public override int GetHashCode() => Declaration.Type.GetHashCode();
public override int GetHashCode() =>
Declaration.OriginalName.GetHashCode() ^ Declaration.Type.GetHashCode();
/// <summary>
@ -94,6 +94,8 @@ public unsafe class CSharpTests : GeneratorTestFixture
{
CSharp.CSharp.ReturnCharPointer();
#pragma warning restore 0168
#pragma warning restore 0219
@ -1542,3 +1542,12 @@ void InterfaceTester::setInterface(SimpleInterface* i)
interface = i;
void va_listFunction(va_list v)
char* returnCharPointer()
return 0;
@ -1298,3 +1298,6 @@ public:
private:
SimpleInterface* interface;
};
DLL_API void va_listFunction(va_list v);
DLL_API char* returnCharPointer();