Dimitar Dobrev
ff76962bf9
Fixed a potential naming conflict.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
1b5de25f8c
Removed implementations for ignored abstract types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
8a510e4ac9
Workaround abstract implementations being generated even if there's no valid base class.
10 years ago
triton
de74b648f2
Added a workaround for printing non-function member pointers types.
10 years ago
triton
d06c42129f
Fixed GenerateClassFields to only process actual base classes.
...
More specifically, TemplateParameterType was also coming up here.
Rather than checking for specific dependent types just check that we have a base class.
10 years ago
triton
ddd39a9cf3
Formatting code fixes.
10 years ago
Dimitar Dobrev
f848f62180
Some refactoring to remove redundant members and casts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
80643e0457
Added support for parameters with type a reference to a fixed-size array.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
c183200815
Fixed a regression causing incorrect sizes of types derived from template instantiations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
7c3d80b5c7
Fixed infinite loop in CheckAbiParameters.
10 years ago
triton
24e898bdcf
Fixed infinite loop in CheckDuplicatedNamesPass.
10 years ago
triton
d07b158a98
Revert "Support overriding the alignment of Clang's target info."
...
This reverts commit 0e1e9c971b .
11 years ago
triton
0e1e9c971b
Support overriding the alignment of Clang's target info.
11 years ago
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
5e3706c879
Fixed marshaling of regular UTF16 strings.
11 years ago
triton
144d26749f
Fixed wide string marshaling on UTF-32 platforms.
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
Dimitar Dobrev
db937b5e71
Removed some duplication of code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
4e37adf4b7
Added conversion operators for ctors with default params.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
a04ac2237a
Fixed the potential generation of explicit and implicit conversion from the same type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
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
Abhinav Tripathi
c6ae35ff7d
Added marshalling of fixed size 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
8a499bb95a
Removed "content" from the verbs because it's used more often as the noun.
...
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
5c66aa2730
Implemented IDisposable.Dispose in the C++/CLI front end.
...
Fixes https://github.com/mono/CppSharp/issues/538
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
997a317e27
Ignored pure overrides in the pass for abstract impls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago