Dimitar Dobrev
84d8af2396
Added a mapping between native object and their managed wrappers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
befad1ba0f
Sped up the generator by using a constant instead of constructing strings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
João Matos
a7443265a0
Fixed marshalling of `const char**` types in C#.
...
Fixes issue #454 .
10 years ago
Abhinav Tripathi
f81247911b
Fixed compilation issues when nesting more than one anonymous types.
10 years ago
Dimitar Dobrev
1a076ed8b0
Extended the commenting of enum members to handle multi-line comments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Abhinav Tripathi
c7c74e306b
Added CS_INTERNAL macro definition and test.
10 years ago
Chris Spencer
d5d17e3ca1
Fix issue with includes not being generated for delegates defined in a different file.
10 years ago
Chris Spencer
0c535d361b
Generate delegates for non-typedef'd function pointers to prevent runtime exceptions during marshalling.
10 years ago
Dimitar Dobrev
36203df887
Restored the full qualifying when printing types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Pyry Kontio
5f23220143
Fixed two bugs.
11 years ago
Pyry Kontio
575088aeb6
Extended namespaces tests to consider taking a parameter and returning a value of types declared in other libraries. Implemented QualifiedIdentifierIfNeeded().
11 years ago
Pyry Kontio
8a85058c48
Implemented name importing & exporting.
11 years ago
triton
1e0db93c5e
Added support for handling non-virtual methods inherited from MI bases.
11 years ago
triton
ac7176f1b7
Added parsing and AST support for C++ friend declarations.
11 years ago
Dimitar Dobrev
c7253b456b
Fixed the assigment of structs with private fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
46bb029848
Changed the check for an interface when generating conversions to work with the parameter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Pyry Kontio
50dff6288b
Fixed the inheritance of a linked class.
11 years ago
triton
684a9ff52b
Fixed wrapping of virtual overloaded operators.
...
References #389 .
11 years ago
triton
e9b4b9bc4c
Extract ABI-common vtable entry allocation code and fix indexing of ignored entries.
11 years ago
Dimitar Dobrev
6d7c1de491
Fixed a bug in the Equals generation for CLI and regenerated the bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
e6223a1c4c
Fixed 4 bugs related to custom comparison operators.
...
1. Missing Equals to complement operator ==;
2. Endless recursion when having a == and comparing to null;
3. Crash when having a == and comparing a null pointer to sth else;
4. Incompilable code with a type derived from a struct with operators.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
ebifrier
604bbf9626
Fixed handling of the argument for indexers.
11 years ago
triton
0e574bdd5b
Fixed wrong code generation for constant-size arrays of non-primitive types.
...
References #380 .
11 years ago
Pyry Kontio
99f643d13f
Test that demonstrate the "new 0" and show some other erroneus behaviour too.
...
Implemented CastExpression. ImplicitCast and ExplicitCast statement classes.
Fixed implicit constructor string generation.
Implemented CtorExpr.
All test cases pass.
Fixed indentations, streamlined the code.
Fixed regressions.
Fixed regressions.
Adding a test case not covered before.
Fixed, refactored and simplified things.
Still more fixes (0 to null ptr conversion, enum check). The additional test passes now too.
11 years ago
Dimitar Dobrev
bc140e13be
Changed the native ctors by value to also be wrapped by static methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2600493dd6
Generated static methods for creating instance by an IntPtr in the C++/CLI branch.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
b9042d72b5
Fixed a regression causing ignored types with bases without empty ctors to fail.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f1c0d7a82a
Fixed the ambiguity in the C++/CLI branch when a native ctor takes anything mapped to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
261473cef8
Extended the support for fixed arrays to the C++/CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
5f54d0b555
Fixed incompilable code generated by the C++/CLI back-end when wrapping certain unions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
011cdf2ae6
Fixed invalid code generated for typedef pointer params by the C++/CLI back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
6bd26ac443
Improved wide char handling in the C# and CLI.
...
References #320 .
11 years ago
Dimitar Dobrev
17a8fc732f
Removed redundant "new" key-words in generated C# code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
b8d4999e98
Fixed code generation for structors with HasThisReturn set to true.
11 years ago
triton
cbb4451284
Small code cleanup. Non-functional change.
11 years ago
Dimitar Dobrev
29ef01699f
Renamed the flag indicating whether to HGlobal-free an instance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d15d3f615b
Fixed warnings about hidden methods in generated code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
d49be57467
Fixed generation bug for ARM ABI.
...
Closes #351 .
11 years ago
Dimitar Dobrev
c4b48cf185
Fixed some problems with arrays of void after mapping void* to IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
dd5c324d01
Entirely removed the Internal struct from implementations of abstract classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
30cb2cbe85
Fixed an ambiguity between an internal ctor and a potential wrapped one.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
b231b00de1
Wrapped void* as IntPtr because unlike int*, char*, etc., void* is just ugly and not useful.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f00fb2189f
Fixed a crash with GCC libs caused by calling FreeHGlobal on non-AllocHGlobal memory.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2894999696
Fixed the generation of constructor overloads synthetised because of default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
9e5be9e92c
Added the ability to only enable a given type map for a selected back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f67af3f59b
Removed a hack made redundant by the improved support for inlines.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d35a81c1f6
Ensured the UnmanagedFunctionPointerAttribute is always set on generated delegates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
934558ed54
Code cleanups, no functional changes intended.
11 years ago
triton
937bff4e2c
Skip generating some unique methods (ctors and dtors) for base classes when handling value types.
11 years ago
triton
dc186ad5da
Stubbed out some type printing overloads.
11 years ago