We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparent incorrect bindings generated for virtual method overridden in C++ and then called from C#. Works correctly in Windows.
OS: Linux (Ubuntu 22.04.3 LTS)
// .h class IBaseClass { public: virtual void BaseMethod(); virtual void CPPImplementedVirtualMethod() = 0; virtual void CSharpImplementVirtualMethod() = 0; }; class IIntermediaryClass : public IBaseClass { virtual void CPPImplementedVirtualMethod() override; };
// .cpp void IBaseClass::BaseMethod() { // ... log that displays "Base Method" } void IIntermediaryClass::CPPImplementedVirtualMethod() { // ... log that displays "Intermediary Method" }
class CSharpClass : IIntermediaryClass { public override void CSharpImplementVirtualMethod() { Console.WriteLine("C# Method"); } }
CSharpClass @class = new CSharpClass(); @class.BaseMethod(); @class.CPPImplementedVirtualMethod(); @class.CSharpImplementVirtualMethod();
When generating bindings for Windows and running the above code, the following is logged:
When generating bindings for Linux and running the above code, the following is logged:
The text was updated successfully, but these errors were encountered:
tritao
No branches or pull requests
Apparent incorrect bindings generated for virtual method overridden in C++ and then called from C#. Works correctly in Windows.
OS: Linux (Ubuntu 22.04.3 LTS)
Repro
C++
C#
When generating bindings for Windows and running the above code, the following is logged:
When generating bindings for Linux and running the above code, the following is logged:
The text was updated successfully, but these errors were encountered: