Dimitar Dobrev
a9a7c8dbfe
A test for the crash when using multiple inheritance and calling a virtual function from a secondary base.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
6f8c942b0a
Adjusted pointers when calling functions from secondary or non-dynamic bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
324e241c25
Fixed the internal abstract impls with default params of a pointer type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
54e8a16fd1
Reverted the representation of Booleans as managed Booleans except in internal structs.
...
Managed booleans are more CPU-efficient than bytes, and some problems with code generation are fixed.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
287ad2394d
Properly printed complex comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
912248b5da
Skipped patching of v-tables for objects not put in the native-managed map.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
87845ad51d
Fixed a regression with abstract types with the same property as a base type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
b9e3efbf0c
Removed the option for copy ctors and prevented usage of ignored ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
bb59ca17fb
Fixed a crash when a C++ ctor indirectly calls a virtual function on the object being constructed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
55bc99bc3f
Fixed a bug when overriding a function located in a dependency.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
9d390865e0
Changed the premake to take multiple dependencies for test projects.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
4e981a80e6
Fixed a bug when wrapping virtual properties overridden in indirect derived types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
dc95c8d8c8
Fixed the bodies of functions overriding indirect virtuals.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
b15735d539
Generated GetHashCode in the C# front-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
fa0e66687d
Fixed abstract implementations and bodies of overrides to properly handle abstract overrides.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
7624635fa3
Added test for C11's atomic type support added in 54267b88a4
.
10 years ago
Dimitar Dobrev
1b5de25f8c
Removed implementations for ignored abstract types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
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
7de598b7aa
Add a test for "Improve robustness when handling unexpected FunctionProto type locs.".
...
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
1d5b9869c8
Added missing test case for 24bdec82b2
.
10 years ago
triton
d6b5fcfe2b
Fixed parser crash with dependent-sized bitfields.
10 years ago
Dimitar Dobrev
5dca339ff2
Forbid the disposal of unowned objects and simplified the generated code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
1d8f480ef0
Restored a test crashing on Windows on other platforms.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
d769a81ade
Called virtual destructors through the virtual table.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
a0e6fb874e
Fix the virtual table tests compilation under GCC.
...
Technically we should also be defining the copy constructors but they're not used by the bindings.
Error caught by Travis:
1) Test Error : VTablesTests.TestVirtualFuntionRetVal
System.EntryPointNotFoundException : _ZN19DerivedClassVirtualC2Ev
10 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.
10 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>
10 years ago
Dimitar Dobrev
89483ec17a
Fixed a regression when having an array with dependent elements.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
170e0a5934
Removed char from internal fields because marshalling is broken.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
e9fcc76918
Restored the code formatting of the tests after an accident.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
5ef899366c
Renamed the test suite projects.
10 years ago
triton
18bc6729ac
Removed useless ignored TestChar16 test.
10 years ago
triton
d265a0f345
Remove unnecessary workarounds in test suite for P/Invoke fixed arrays bug.
10 years ago
Dimitar Dobrev
4e37adf4b7
Added conversion operators for ctors with default params.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 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>
10 years ago
Abhinav Tripathi
364ea2660f
Fixed code gen for out Parameters.
10 years ago
Abhinav Tripathi
2df3722a14
Fixed getter code for static REf Type arrays.
10 years ago
Abhinav Tripathi
e0c561d731
Fixed build on linux due to newline.
10 years ago
Abhinav Tripathi
c6ae35ff7d
Added marshalling of fixed size ref type arrays.
10 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>
10 years ago
Dimitar Dobrev
63bc07e965
Fixed the cleaning of invalid names to allow custom names for enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 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>
10 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>
10 years ago
Dimitar Dobrev
de02c1af27
Fixed the implementation of secondary bases with overloads caused by default values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
b7187c80c7
Generated valid code when C++ changes method access when overriding.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
a2b8614f54
Improved the support for constructor expressions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
56b02cfcf9
Converted to 0 default expressions calling an empty ctor of a type mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
0930360cd5
Ensured conversion operators from primitive pointers pass the correct values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago