Dimitar Dobrev
|
5dca339ff2
|
Forbid the disposal of unowned objects and simplified the generated code.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
d769a81ade
|
Called virtual destructors through the virtual table.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
cc97558bbe
|
Replaced the redundant references for v-tables with the native-managed map.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
235c556374
|
Simplified the generated code for v-tables.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
72f062c56f
|
Reused the virtual call for calls to abstract impls.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
289720d31b
|
Only hooked the v-tables of wrapped C++ pointers when they have virtual dtors.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
7f8fa9100c
|
Removed references for v-tables upon destruction of the object.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
f33ae8b801
|
Revert "Factor the saving of original vtables pointers to its method."
This reverts commit 03f610f528.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
triton
|
89cdf8b997
|
Reworked per-Abi vtable code to correctly handle all platforms.
|
11 years ago |
triton
|
03f610f528
|
Factor the saving of original vtables pointers to its method.
|
11 years ago |
triton
|
e2b74a7697
|
Implemented virtual function call handling.
Closes issues #402, #496.
Thanks to Abhinav for his pull which I based this work on.
|
11 years ago |
triton
|
bc3ace2205
|
Rework __OriginalVTables to be unique per instance.
We need to take into account that the original vtables might differ per object instance.
|
11 years ago |
triton
|
d4cd37ec11
|
Rename the VTable field names in the generated code to be more specific.
|
11 years ago |
triton
|
24eb7cf825
|
Fixed VTables.GetVTableIndex to work with base/derived overrides.
|
11 years ago |
Dimitar Dobrev
|
007fb4b57c
|
Removed parameters wrapped in v-table delegate hooks from the native to managed map.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
triton
|
0108a5a23e
|
Invert the if condition to reduce nesting.
|
11 years ago |
Dimitar Dobrev
|
c4a5cdb893
|
Fixed the v-table hooks for functions with indirect return params.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
c28b8db3e5
|
Removed the TODO-s about marshalling char and bool because those are not bugs.
See https://msdn.microsoft.com/en-us/library/ef4c3t39.aspx and https://msdn.microsoft.com/en-us/library/75dwhxf7.aspx .
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
91b3a5aef1
|
Worked around an MS .NET bug which prevents marshalling bools in certain cases.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
cdd6e0eaa8
|
Restored a deleted piece that helps generate simpler code.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
170e0a5934
|
Removed char from internal fields because marshalling is broken.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
triton
|
6623161200
|
Workaround Mono crasher bug when handling P/Invokes with fixed arrays.
https://bugzilla.xamarin.com/show_bug.cgi?id=33571
|
11 years ago |
triton
|
4db4bfa567
|
Do not use safeIdentifier id to store the full type name (refactoring).
|
11 years ago |
Abhinav Tripathi
|
364ea2660f
|
Fixed code gen for out Parameters.
|
11 years ago |
Abhinav Tripathi
|
2df3722a14
|
Fixed getter code for static REf Type arrays.
|
11 years ago |
Dimitar Dobrev
|
9377845ba7
|
Decreased the pass for abstract impls in half.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
6432d910fa
|
Removed the memory leak in the AST converter.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
922c329d78
|
Fixed uncompilable code when a virtual function has a param called "target".
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
ea8e167e6e
|
Prevented duplication when a class and its base each have a field with the same name.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
9d9d7b520a
|
Generated correct code when overriding a property from an indirect secondary base.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
b7187c80c7
|
Generated valid code when C++ changes method access when overriding.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
a2b8614f54
|
Improved the support for constructor expressions.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
0930360cd5
|
Ensured conversion operators from primitive pointers pass the correct values.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Abhinav Tripathi
|
dd941d9191
|
Added marshalling of primitive ptrs to ref type.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
b6c16051af
|
Fixed the wrapping of mapped types with operators.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
062f8e26e0
|
Revert "Revert "Included ignored fields in the wrappers for better marshalling.""
This reverts commit 27d3f21a75.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
069b727a23
|
Fixed the generation of overloads for free functions with default args.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
8fd62e6294
|
Fixed a bug with removing the "override" modifier when overriding a member of a secondary base.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
994ed60dc0
|
Something went wrong and the actual fix for changed property access wasn't sent.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
27d3f21a75
|
Revert "Included ignored fields in the wrappers for better marshalling."
This reverts commit 65cac93259.
Conflicts:
src/Generator/Generators/CSharp/CSharpTextTemplate.cs
tests/Basic/Basic.h
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
42828f35fd
|
Fixed the generation of abstract impl calls in property setters.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
f09a49b353
|
Removed three hacks about method objects in v-tables.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
de0392ca1e
|
Fixed a bug when a function returns an abstract class contained in a dependency.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
451278cb10
|
Removed the option for abstract impls thus enabling them by default.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
2e57ce7808
|
Cleaned up the C# generator.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
77369b50c5
|
Removed the option for abstract impls enabling them by default for the C# generator.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
Dimitar Dobrev
|
a9021ea63d
|
Fixed some typos.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
triton
|
9b62ec46e6
|
Fixed destructors signature in MS ABI.
See MicrosoftCXXABI::EmitVirtualDestructorCall in https://github.com/llvm-mirror/clang/blob/master/lib/CodeGen/MicrosoftCXXABI.cpp for the nitty gritty details.
|
11 years ago |
Dimitar Dobrev
|
1e195a166a
|
Generated comments for variables (static fields in C#).
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
11 years ago |
triton
|
95c34277a3
|
Code formatting fixes.
|
11 years ago |