689 Commits (b1afea2251982c19f19fb5212c7eff6a42e7bd21)

Author SHA1 Message Date
triton c0fd74f7aa Added much better support for base classes. 13 years ago
triton 5a7d9b3fe5 Use the new type reference class in unit in the CLI generator. 13 years ago
triton 95fc7b1781 Do not try to call the base constructor of a value type. 13 years ago
triton 8d7dc79ead Process base class references as forward references. 13 years ago
triton 014a084039 Added the new C# backend (still a work-in-progress). 13 years ago
triton f2c86a509a Fixed the 64-bit primitive support in CLI type printing. 13 years ago
triton 4072a2a8bb Added an IMarshalPrinter interface. 13 years ago
triton 2cd35daa5e Update the C++/CLI templates to the new driver. 13 years ago
triton 7b2dc65a75 Text templates now have an abstract method to generate their text. 13 years ago
triton 7247d039d0 Extract the generic text generating helper code into its own class. 13 years ago
triton af5d2b2584 Remove the old C# backend templates. 13 years ago
triton 04fa54d077 Move CLIGenerator to its own file. 13 years ago
triton 0be133da70 Extract some generator logic into the driver. 13 years ago
triton 34eeb8e052 Renamed Options to DriverOptions. 13 years ago
triton daaa91acfa Implement missing visitor methods. 13 years ago
triton 24d3fee304 Clean up unneeded usings. 13 years ago
triton ce4de80e10 Added an interface to represent type printing. 13 years ago
triton 0c40927ab8 Rename TypeDatabase to TypeMapDatabase and move its initialization to the ctor. 13 years ago
triton c9440a935c Moved the CLITextTemplate class to its own file. 13 years ago
triton 0302622b00 Remove dependency on the Generator class by explicitly passing the needed services. 13 years ago
triton 5d1f9a49c4 Extract the CLIForwardRefeferencePrinter class into its own file. 13 years ago
triton 0b2de09b16 Extract the CLITypePrinter class into its own file. 13 years ago
triton 2923a262a3 Fixed extra diffs added by the rebasing proccess. 13 years ago
Tarmo Pikaro f9dc3a61c7 Add _wrapper suffix to autogenerated files, so would not conflict with normal headers/sources. 13 years ago
Tarmo Pikaro d4e80fe566 Make -a command line optional, fix #include's, disable warnings. 13 years ago
triton e266f3bc71 Update to the new conversion kinds names. 13 years ago
triton 6be6bca2d7 Simplify the code by using a single WriteLine call. 13 years ago
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