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
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
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
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
triton
a7c6747e72
* Revert "Fixed namespace conflict in C++/CLI."
...
This reverts commit 0fa18a9f62 .
Unfortunately MS's C++/CLI compiler seem to have a bug handling operator overloads with global qualified types. Rever this for now until we figure out a workaround.
11 years ago
Dimitar Dobrev
78c3db80aa
Fixed incompilable code when a virtual function has ref params.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
0fa18a9f62
Fixed namespace conflict in C++/CLI.
...
Closes #533 .
Related:
https://github.com/mono/CppSharp/pull/520 cf472f526c
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
Pedro Miguel Casaleiro Dias
ed3e0bd54a
closes #514 .
...
test added to tests/CSharpTemp/CSharpTemp.Tests.cs
11 years ago
triton
cf472f526c
Fixed C++/CLI to handle namespace conflicts between free functions and namespaces.
...
We generate free functions inside a global namespace-level class with the same name as the header. This means that there might be some conflict if we already have a class with the same name as the header. This fix changes the code to always fully quality classes so the code always compiles correctly.
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
86bd6bd118
Fixed the names when marshalling enum parameters in the C# end.
...
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
c136e2d220
Fixed incompilable generated C# code when having a function pointer returning a pointer.
...
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
João Matos
6917008a4b
Use the qualified class name when handling returned class pointers.
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
triton
74f9ab8a19
Check if we're generating copy constructors before trying to use them.
11 years ago
triton
ea4ce03e92
Use the qualified class name when casting the object from the native/managed map.
11 years ago
triton
14e53b523f
Cast when creating new object instances since CreateInstance returns the base type.
11 years ago
Abhinav Tripathi
384dac3442
Fixed code generation when using arrays in ValueType types.
11 years ago
Dimitar Dobrev
14f5358daa
Fixed a bug when having protected properties in a secondary base.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago