Abhinav Tripathi
364ea2660f
Fixed code gen for out Parameters.
10 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>
10 years ago
triton
dc213e3b99
Fixed Basic tests linking in C++/CLI backend.
...
This was a regression introduced when fixing the visibility of this variable on Linux.
10 years ago
Dimitar Dobrev
cafc14ffed
Moved the initialisation of a variable to the cpp so that it works properly on Linux.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
fa58aea3f0
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
9d78f5386d
Fixed a crash on Mono when marshalling types with no fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
86bd6bd118
Fixed the names when marshalling enum parameters in the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
25f2b4a1f9
Prevented any change of access for inherited virtual properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
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
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
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
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
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
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
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
1387b636e2
Replaced the usage of memcpy with a simple dereference assignment.
...
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
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
9159e531f4
Added EnumInOut tests.
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
51fa468cfa
Added unit test for in/out for primitive parameters.
11 years ago
Tomi Valkeinen
13dc201053
Basic: fix compile warning
...
'operator|' : recursive on all control paths, function will cause runtime stack overflow
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
69b8b6e6d0
Move the definitions to the header again, but provide them at global scope.
...
This should fix the previous problem too, and keeps related declarations/definitions together.
11 years ago
triton
a33277f233
Moved some tests definitions from the header to the source file.
11 years ago
Elias Holzer
d8b855bfe6
Fixed handling of primitive pointer types.
11 years ago
Dimitar Dobrev
72089a499e
Marshalled C++ char as Mono/.NET char instead of sbyte for a more friendly API.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7477b90023
Moved the tests for copy ctors to separate classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fee1809ca5
Wrapped copy constructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
819df6a2a2
Fixed CLI generation with references to pointers types (added a test).
12 years ago
Dimitar Dobrev
c853db5d34
Ignored operators which cannot be moved to a class because C# requires operators to be in their containing type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a8c6e1f140
Fixed a problem with class operators not being correctly promoted to class operators.
...
We need to check all the parameters for a possible class to promote the operators.
12 years ago
Dimitar Dobrev
d583b489a3
Fixed the returning of empty values when the returned type is a structure.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
06b83ee3fc
Changed the generation of method bodies to avoid duplication of local variables when a fixed instance is required.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
6bf0ae980c
Changed attributed types test to be CLI-only for now since Clang currently fails with some mangling bugs.
12 years ago
triton
6402c3ca55
Added support for C++ attributed types to the parser, AST ,generators and tests.
12 years ago
Dimitar Dobrev
3cf6c7b3f1
Added a test for the pass that moves functions to a class.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2b77361d89
Reverted the hack about filling the empty names of parameters explicitly for function types. Added tests for this regression and another one caused by the changed around the introduction of FunctionType.Arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
fed9031775
Fixed support for C++ conversion operators.
12 years ago
triton
6bbe864a2c
Removed enum class in the new nested type test since it's not supported by VS2010.
12 years ago
triton
c7b7e2c703
Fixed generation of nested declarations in classes.
12 years ago