Elias Holzer
570f13112b
Fixed issue with const pointer.
12 years ago
Elias Holzer
e6cb543c36
Fixed overloading of an indexed properties by removing the hard coded "int index" part.
12 years ago
Elias Holzer
d8b855bfe6
Fixed handling of primitive pointer types.
12 years ago
triton
4a98f69df5
Added an explicit option to generate copy constructors.
12 years ago
triton
a6bd803a71
Fixed code generation for Itanium ABI instance/indirect return types methods in C#.
12 years ago
triton
9c07283ff0
Fixed CLI getter/setter property generation (with tests).
12 years ago
triton
2ebce723ae
Use SafeIdentifier when writing parameter names in the C# marshaller.
...
TODO: There are still lots of instances in the marshaller where we do not do this. We should instead clean the parameter/declaration names before entering generation.
12 years ago
triton
5e0cd3112a
Fixed marshaling of wide characters in the C# backend.
12 years ago
triton
fec8b00d8e
Added marshaling of function types to C# backend.
12 years ago
triton
3c40442a13
Minor code formatting fixes.
12 years ago
triton
ee6baa38dd
Fixed code generation for global functions (and added a test).
12 years ago
marcos henrich
c57ceb86c1
The name of the class containing static methods generated from C++ functions is no longer based on the option OutputNamespace.
12 years ago
marcos henrich
56f772a8c8
UseHeaderDirectories when true generated files will be outputted to original relative paths, and include will use relative path between headers. When NoGenIncludePrefix is set a string is prepended to the include files that are not generated.
12 years ago
marcos henrich
5484758507
Added DriverOptions to CLITypeReferenceCollector.
12 years ago
marcos henrich
ec93889b64
Using property ExplicitlyIgnore instead of Ignore, so types that are not referenced can still be referenced.
12 years ago
marcos henrich
afde77e968
Refactored multiple similar foreach loops to a simpler version.
12 years ago
marcos henrich
734fe3348d
GenerateClassFields is now always called even when the current class has no fields because fields of a value type base class must generated.
12 years ago
marcos henrich
b28ac8b304
Added delegate CheckGenerate that is called before on generate so the block text generation can be empty when needed.
12 years ago
marcos henrich
3237a7b421
Template method PopBlock now returns the active block.
12 years ago
marcos henrich
c061cf5be4
Added property IsEmpty to Block.
12 years ago
triton
e95a2929a8
Fixed handling of property indexers in the CLI generator.
12 years ago
triton
5b15b27312
Fixed CLI marshaling to take typedefs into account when handling pointer to primitive types.
12 years ago
Elias Holzer
ba03f64f65
Do not write the fixed keyword multiple times for nested array types.
12 years ago
triton
21efb8fc83
Fixed a bug by removing this weird looking code from the C# marshaller.
...
The test suite still passes too.
12 years ago
triton
08255907de
Fixed C# and CLI backends to check for null values when marshaling classes.
12 years ago
triton
7faa50d945
Fixed native symbol naming.
...
We now properly name the internal ctor declarations by constructor type.
We also now keep an index for each function that is used to unique their native name.
12 years ago
Øystein Krog
065b8054b2
Add PrimitiveType.UIntPtr in AST and code generators
12 years ago
Øystein Krog
d3e963ff19
Move helper methods in Type out from class and into extension class TypeExtensions
12 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
556e91554f
Ignored protected members of value types. Used a constant for the instance identifier to improve performance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
8e9d4f9c31
Fixed generation of copy constructors for CLI value types.
12 years ago
Dimitar Dobrev
fee1809ca5
Wrapped copy constructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
24a8db6a32
Fixed the generation of internal implementations of abstract classes to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2e2f277b30
Ensured the internals of mapped classes are generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
8d9ff9515e
Generated dependent fields if they are of a union type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
648e47570d
Checked for symbols before calling destructors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
99849da1d1
Added preliminary support for char16 to avoid crashes because of null parameter types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
66363787b4
Stubbed support for pack expansions to avoid crashes in certain cases such as variadic templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
11ef53df10
Generated all internals of all (including ignored) classes and all of their fields in order to properly store objects in managed code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
12 years ago
Dimitar Dobrev
85e56de487
Applied Helpers.SafeIdentifier in the name-cleaning pass in order to get correct names in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
d92bc31a71
Replaced a call to == with ReferenceEquals when checking for null to avoid cycles in == operators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
fe6378a88a
Added an additional property to type maps indicating if they actually provide marshalling (useful if only copy constructors are replaced).
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Øystein Krog
663c91e443
Add support for fields with expressions (values) in CSharpTextTemplate
12 years ago
Øystein Krog
df7c1371a6
Pass in an CSharpExpressionPrinter instance to CSharpTextTemplate
12 years ago
Øystein Krog
240d2db53d
Add new IExpressionPrinter interface, with CSharpExpressionPrinter implementation
12 years ago
Dimitar Dobrev
59e0fb9ede
Generated correct v-tables when using the Itanium ABI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
gpetrou
1ec9686111
Added default option to avoid generating ICppMarshal interface in the output files.
12 years ago
Dimitar Dobrev
cfeed2619a
Extended type maps with the ability to insert custom code instead of a copy ctor invocation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
4c5d933cd2
Added support for marshalling arrays of pointers to primitives.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago