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>
10 years ago
Abhinav Tripathi
384dac3442
Fixed code generation when using arrays in ValueType types.
10 years ago
Abhinav Tripathi
fc54f71893
Fixed code gen when using non primitive pointer type CS_OUT args.
10 years ago
Dimitar Dobrev
315e3e50f3
Fixed the naming of multiple anonymous types in a union.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Abhinav Tripathi
f81247911b
Fixed compilation issues when nesting more than one anonymous types.
10 years ago
Chris Spencer
e3a88f9136
Fix the anonymous delegates pass so it doesn't generate duplicate delegates when the same namespace is used in multiple translation units.
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
d2189fa5a7
Moved the improved test for friends to Basic because it's not C#-specific.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
f2de736f81
Fixed cyclic dependency when parsing class templates with friends.
...
Fixes ddobrev/QtSharp#22 . Thanks to @golddranks for debugging the problem and the fix.
11 years ago
Dimitar Dobrev
3d72c2fca4
Added renaming of variables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
6fb15efd50
When checking const-ness for ambiguity, ensure parameters are the same.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
b6e5fe3c0e
Parsed friendly non-type declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Joao Matos
b6b2c503d8
Fixed test to work under non-Windows platforms.
11 years ago
triton
684a9ff52b
Fixed wrapping of virtual overloaded operators.
...
References #389 .
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
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
triton
ec4ee6ba3c
Fixed handling of static fields in the parser.
...
References #320 .
11 years ago
triton
100d43c2b0
Fixes classes wrongly being assigned as static classes.
...
Closes #348 .
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
3c7c19ffc0
Fixed the generation of anonymous types to consider parenting anonymous types.
...
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
Dimitar Dobrev
7a68a1c9c0
Fixed a crash when parsing va_list in a GCC 64-bit environment.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
01bc87bde9
Added a check for ignored ctors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
65cac93259
Included ignored fields in the wrappers for better marshalling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
d6d0d681c9
Fixed a compilation error when wrapping abstract destructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
a7d0ef13f9
Removed a needless renaming of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
27a2016f8a
Added reference test case.
11 years ago
Tom Spilman
7e8f743228
Fixed const char string CS_IN_OUT case.
11 years ago
Tom Spilman
4bddc0798b
Added StringOutRef test.
...
Moved const char string in/out into its own test function.
11 years ago
Tom Spilman
d4e4aaffad
Fixed CLI and CSharp support for out parameter const char strings.
...
Added test for out parameter const char strings.
11 years ago
Tom Spilman
997de0e836
Added test for static protected methods/properties.
11 years ago
Tom Spilman
9159e531f4
Added EnumInOut tests.
11 years ago
Dimitar Dobrev
f77d394eb1
Generated methods and variables of base classes of value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
c91899ddf3
Whitespace change.
11 years ago
Dimitar Dobrev
e4b860c053
Fixed wrong code generated for indexers in value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tom Spilman
5e63406de0
Added tests for out enums.
11 years ago
Tom Spilman
d39ec43431
Whitespace fix.
11 years ago
Tom Spilman
51fa468cfa
Added unit test for in/out for primitive parameters.
11 years ago
triton
7594df6d11
Skip dependent types when handling CLI type references.
11 years ago
Tomi Valkeinen
4e185973e5
Normalize all the line endings
...
Normalized all the line endings with:
git rm --cached -r .
git reset --hard
git add .
git commit -m "Normalize all the line endings"
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
af06f32fd5
Reworked static class support in CLI and C#.
11 years ago
triton
eb2bbba883
Added better support for nullptr_t types.
11 years ago
triton
6edcb8dd44
Added support for decltype types.
11 years ago
Elias Holzer
6fa7077dbd
Moved unnamed enums test to generator tests.
11 years ago