Browse Source

Fixed the layouts of ignored dynamic types by generating their v-table pointers.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
cpp_module_crash
Dimitar Dobrev 10 years ago
parent
commit
2294fe56fb
  1. 5
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -480,12 +480,11 @@ namespace CppSharp.Generators.CSharp @@ -480,12 +480,11 @@ namespace CppSharp.Generators.CSharp
TypePrinter.PushContext(CSharpTypePrinterContextKind.Native);
if (@class.IsDynamic)
GenerateVTablePointers(@class);
GenerateClassFields(@class, @class, GenerateClassInternalsField, true);
if (@class.IsGenerated)
{
if (@class.IsDynamic)
GenerateVTablePointers(@class);
var functions = GatherClassInternalFunctions(@class);
foreach (var function in functions)

Loading…
Cancel
Save