1520 Commits (f09f95d7a40cf0890fa48a133547678862147576)

Author SHA1 Message Date
triton f426f6af2f Pass the parameter information to the marshal context so that we can correctly treat function conversions. 13 years ago
triton a29fc42602 Throw an exception when we cannot marshal an argument. 13 years ago
triton 659d2dd1d5 Use a conditional operator to make the code simpler to read. 13 years ago
triton f73213e73e Use the complete version of the declaration when generating forward references in the CLI source files. 13 years ago
triton 11bc8fac75 Do not add a new line after the first include when generating CLI source files. 13 years ago
triton c2c7941187 Pass the TypeMapDatabase explicitly to CLIMarshalManagedToNativePrinter. 13 years ago
triton 7be2a4ef2b Added support for function to instance method conversions in the CLI generator. 13 years ago
triton bffeaad8d9 Added better support for static methods in the C++/CLI header backend. 13 years ago
triton 2c3596ce8b Extract a couple of methods in CLIHeadersTemplate.cs to make the code more readable. 13 years ago
triton 462a78c5fc Refactored the generation of method parameters in its own method. 13 years ago
triton 5f49a53636 Rework how the struct marshaling from managed to native is done. Now we marshal each field explicitly instead of assuming the struct is made of blittable types. 13 years ago
triton 3d8ea62e4e Added support for prefix text before the marshaled argument is passed to the wrapped native function. 13 years ago
triton 257a372573 Added support to generate text before and after the argument in CLIMarshal.cs. 13 years ago
triton 47012db6be Converted CLIMarshal.cs to the new text generator class. 13 years ago
triton 2d4f09f171 Improved the marshaling of value class method parameters. 13 years ago
triton 91ef36aad8 Add an explicitly dereference if trying to wrap class-based pointer types when doing class managed to native marshaling. 13 years ago
triton f28db2f5f1 Add an explicit cast when we have a typedef to a primitive type. This fixes some ambiguity cases when the compiler later performs overload resolution. 13 years ago
triton ffc96de8f9 Fixed the managed to native marshaling of pointers to primitive types by following typedefs and casting when necessary. 13 years ago
triton fe7beb5f08 Use the full qualified name for referring to the managed type constructor when doing native to managed marshaling. Use an explicit cast for the first argument. This fixes the case when the type being passed to the constructor is const. 13 years ago
triton 8f02c6a2dd Handle native to managed marshaling of pointers to primitive types. 13 years ago
triton 0d20a497c6 Moved class member to the top of the class. 13 years ago
triton 27a70dbbfe We now create an extra public constructor that takes an IntPtr. We do this because by default native types are not exported as public in MSVC C++/CLI and we need to be able to instantiate these objects. 13 years ago
triton 89f2cbdf74 Fixed processing of incomplete enums in CLI headers. 13 years ago
triton 721d507633 Enum declarations also need to be forward referenced. 13 years ago
triton 44154a879d Class reference types do not need a full include forward reference. 13 years ago
triton 3dd40b1d75 Walk through typedefs when checking for pointers to primitive types in CLITypePrinter. 13 years ago
triton c6dd10fc81 Prefer visiting complete class declarations if they are available. 13 years ago
triton 5a90ba7644 Added an handle to CLI arrays wrapping. 13 years ago
triton b8ebd27841 Added namespace walk support. 13 years ago
triton dae633b89f Improved CLI value class marshaling. 13 years ago
triton da2030c25c Fixed marshaling of C++ references. 13 years ago
triton c72c1e1dd6 Stubbed out delegate visiting support. 13 years ago
triton 42e01edfaa Renamed variable to follow the conventions in the rest of the code. 13 years ago
triton d1bcc2f1f9 Removed unneeded using in CLI/CLIHeadersTemplate.cs. 13 years ago
triton 98e06af6f1 Update CLIMarshal.cs to the new type map database interface. 13 years ago
triton faa635f065 Added an helper method to check if a field is ignored. 13 years ago
triton 5ffb858f8f Switch CLITypePrinter to the new type map database interface. 13 years ago
triton b5566c8400 Changed the generator to receive a type map database instance. 13 years ago
triton 8540e48bcf Improved the CLI type printing of typedef types. 13 years ago
triton 61a6811816 Improved the printing of CLI forward references. 13 years ago
triton 7cc8b8bad7 Removed some dead legacy code that is left from the C# module. 13 years ago
triton 5a8400ed22 Added generation of properties for fields of non value-type classes. 13 years ago
triton 861a979d35 Struct types also need to have a default constructor taking the native instance. 13 years ago
triton 865867586a Comment out and add a TODO for the handling of unions. 13 years ago
triton 2c9999d95c Renaming and mechanical changes to CLIHeadersTemplate.cs. No behavior change intended. 13 years ago
triton 8f29c406ba Added generation of include needed to break dependencies on forward references. 13 years ago
triton f5fcef50f1 Massive update to the codebase. 13 years ago