Dimitar Dobrev
d14ad944fc
Fixed the type map for an enum to also handle pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6dadab3796
Fixed the generated code when a default argument uses a constant.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
8d2c5f49b5
Prevented changes in the casing of functions bearing the same name as their name-space.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0798c5428c
Fixed a case of default arguments which use nullptr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Abhinav Tripathi
347d0cdbaf
Fix for fn call when def argument is interface.
10 years ago
Abhinav Tripathi
e9152a79b5
Fixed missing namespace problem.
10 years ago
Dimitar Dobrev
d3644dcf5d
Fixed a crash with abstract overrides originating from secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
144b9546de
Fixed another case of a default arg assigned through an implicit ctor.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
132509203b
Improved the handling of function calls in default args.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
8ebefa1f37
Added support for call expressions in default args.
...
The conversion of an expression to a string has been moved to the generator because a function may have been renamed or converted to a property.
However, since that string is language-specific, it should be created in the generator anyway. Therefore we should (over time):
1. Move any string manipulation from the pass for default args to the printer for expressions which is in turn used only by the generator;
2. Remove the Statement.String property (when 1. is entirely complete).
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
05a44565bd
Ensured a virtual dtor is called even if the base dtor is not virtual.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
0950b869a1
Fixed the offsets of fields when using multiple inheritance.
...
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
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
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
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
b15735d539
Generated GetHashCode in the C# front-end.
...
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
Dimitar Dobrev
d769a81ade
Called virtual destructors through the virtual table.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
5ef899366c
Renamed the test suite projects.
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
Abhinav Tripathi
364ea2660f
Fixed code gen for out Parameters.
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
76ea3158df
Prevented conversion operators from getting ref params.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Abhinav Tripathi
dd941d9191
Added marshalling of primitive ptrs to ref type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
c8da628782
Fixed the renaming of overrides in a certain situation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
b6c16051af
Fixed the wrapping of mapped types with operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
54caddeed1
Cloned types when changing them to interfaces for multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
180535ba3a
Removed all remaining inlined bodies in order to fix the tests on Linux.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
52abb8fd97
Fixed the pass for conversion operators not to create such for ctors taking a base or derived type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
fc572cd57e
Fixed the pass for conversion operators not to create them in abstract types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
8e2490394d
Fixed a crash at generation time with a fake "setter" with no params and a getter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
069b727a23
Fixed the generation of overloads for free functions with default args.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
45e4ba7782
Fixed a compilation error when having a setter match for an explicit interface getter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 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>
10 years ago
Dimitar Dobrev
ad6555f957
Fixed the wrapping of default args assigned with a ctor expression with more than one param.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
fcd7260f6d
Filled in he missing C++ impls of methods with default args.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
8ddc1e4736
Removed ignored methods from consideration when generating properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Abhinav Tripathi
33cb87ad65
Added param to interface pass for Operator functions and a test.
10 years ago
Dimitar Dobrev
14f5358daa
Fixed a bug when having protected properties in a secondary base.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
213f0884c9
Added a test for protected members in secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
d7e74c68e6
Ensured implementations of interface members are properly renamed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
9ce1fea794
Fixed the "override" modifier of overridden methods and properties from secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago