Dimitar Dobrev
e078968cf2
Fixed the generated C# for indexers in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
cd548059e9
Added support for class templates which do not specialise types external to them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
46b40bbe05
Fixed the generated C# for a case of a typedef of a function pointer.
...
Typedefs of function pointers can be written in two ways:
typedef void (*typedefedFuncPtr)();
int f(typedefedFuncPtr fptr);
typedef void (typedefedFuncPtr)();
int f(typedefedFuncPtr* fptr);
Up until now we only supported the former.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
db522c0295
Fixed the C# generation for functions with typedefed function pointers as params ( #903 )
8 years ago
Mohit Mohta
48c6094f52
Fixed the code generation for indexers returning a void pointer ( #901 )
8 years ago
Dimitar Dobrev
422b98a0fd
Enabled the tests for std::string.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
6bd00372c0
Fixed the generated C# for const ref parameter of Indexer ( #851 )
...
Fixes #628
8 years ago
Mohit Mohta
efbc8fe90e
Fixed the generated C# when setting a field which is an array of complex objects ( #841 )
...
Fixes #717
8 years ago
Gilad Levi
9425beab96
added a test for MyMacroTestEnum + split LINQ to different lines
8 years ago
realvictorprm
10c86a2a10
Fixed the generated C# when an incomplete class is forwarded more than once.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
938ccf686b
Incomplete classes and structs are now generated for C#. ( #797 )
...
This feature is NOT coming for C++/CLI !
8 years ago
Dimitar Dobrev
8b230bdf07
Fixed a corner case of a default parameter with a type mapped to an enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
e7f9b2975c
Updated NUnit to the latest version (3.6) to fix a test failing at AppVeyor.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
2352681f5b
Fixed a regression causing objects to be missing at virtual calls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
5899f0e0c4
Handled base "setters" overridden in derived types with a getter.
8 years ago
Dimitar Dobrev
21233a6622
Hid most internal details of the generated code from users.
8 years ago
Joao Matos
2be56cbf0d
Clean up a bunch of build warnings.
9 years ago
Dimitar Dobrev
77f45dee38
Fixed the adjustment of the instance in cases of multiple inheritance.
...
Fixes https://github.com/mono/CppSharp/issues/707 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
05c4213c28
Revert "Fixed the adjustment of the instance in cases of multiple inheritance."
...
This reverts commit e43dd1c18f
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e43dd1c18f
Fixed the adjustment of the instance in cases of multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
924ceaf85a
Fixed the selection of a virtual table to call virtual methods through in the C# generator.
...
Fixes https://github.com/mono/CppSharp/issues/703 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
baee5fd5a8
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>
9 years ago
Dimitar Dobrev
9cbb13053a
Fixed the generated code when an override has its access increased.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
7c9c91acc3
Fixed the generated C# when a method with a default arg is named the same as another, non-default, of its parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
a04c752b33
Fixed the generated C# when an abstract function has no default args but its overrides do.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6245f9e105
Fixed the generated C# when an abstract function in a secondary base has a non-primitive default argument.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6ed05c2b5d
Fixed the generated C# with properties constructed from a returned value and a taken reference.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9fe2d307dc
Fixed the generated C# when marshalling a field of type const wchar_t*.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
1932798d45
Aligned pointers to classes when passing them converted to their secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b16bb0a979
Moved the change of order when visiting properties to just the renaming pass.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
be32825bed
Added support for wrapping variable arrays.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9da51c1e16
Changed the renaming not to remove the underscores from all-capital names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
bcd6b226fa
Fixed the marshalling of arrays.
...
Fixes https://github.com/mono/CppSharp/issues/680 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
7b510bec42
Simplified the name of the internal structure.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
b2a90a5d80
Prefixed the internal structure for the C# end to avoid naming conflicts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e2690ba078
Switched the C# generator from manual conversion between strings and pointers to the built-in string marshallers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
e36e7fc0ca
Ignored fields with types pointer to a function because they are not properly marshalled anyway.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
fbd1f5e328
Optimised, simplified and fixed the pass for renaming by case.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
aabe7409d1
Fixed the internals of templates specialising arrays by simplifying the names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
d41609eafb
Marked incomplete class template specialisations and ignored them later.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0837094d76
Fixed the generated C# code when a default arg with an ignored expression is preceded by another default arg.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9d940c8f51
Removed default parameters when they use ignored declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6a0069f9c2
Fixed invalid C# code when wrapping a constant of type std::string.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
4b82838b54
Extended the C# end with support for free constants and fixed their printing.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
0ea801f7b9
Fixed the generated code when a default parameter of type char or wide char is assigned an int.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
2f4d1b20fa
Supported constants as default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
399ffdabe3
Generated properties from "get_" and "set_" prefixes as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f7707629ef
Fixed the getting of values mapped to enums, from pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
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