Dimitar Dobrev
|
1084dcc1df
|
Deleted unused code from the C# generator.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
40e6abbd22
|
Deleted pointless indexation of overloads.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
351bae6bb6
|
Removed redundant indexation from internal functions in C#.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
9c0f80f69d
|
Bound the supported specialisations with generic syntax in the generated C#. (#880)
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Mohit Mohta
|
49e94460a5
|
Fixes Stack mismatch when bool param passed from C++ to C#
Fixes #834
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
54f3af1459
|
Revert "Simplified the C# marshalling of Boolean fields."
This reverts commit dc270ef2a8 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
dc270ef2a8
|
Simplified the C# marshalling of Boolean fields.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Mohit Mohta
|
65d5037a72
|
Fixed the generation of C# for Virtual function with std::string params (#878)
Fixes #877
|
8 years ago |
Dimitar Dobrev
|
e04afb8bd5
|
Generated C# marshalling structures for classes nested in specialisations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
ktopouzi
|
75b96143d2
|
Used packing when laying marshalling structures out sequentially.
Fixes https://github.com/mono/CppSharp/issues/772.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
37adb3efc9
|
Fixed the binding of indexer overloads when there's more than one class key.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
c3f5b596ce
|
Simplified and shortened the names of internal functions in many cases.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
c740a34dfa
|
Fixed the binding of a copy ctor when a move ctor exists too.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
762d3803d7
|
Changed the C#-printing of template specialisation types to use their arguments.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Kimon Topouzidis
|
24e452a183
|
Added int128 and uint128 to the marshalling structures in the C# generator. (#858)
fixed #771
|
8 years ago |
Dimitar Dobrev
|
3794047cd6
|
Deleted an unused method.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Kimon Topouzidis
|
551d208044
|
Added half to the marshalling structures in the C# generator. (#854)
|
8 years ago |
Dimitar Dobrev
|
1895ae3b94
|
Removed unused kinds of function synthesis.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
51fe04b666
|
Made all fields of C# marshalling structures internal.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
8479ed3735
|
Removed unused parameters from the utility functions.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Mohit Mohta
|
78c9a3e791
|
Added check for native pointer for null before calling a destructor and set it to null after (#843)
Fixes #808
|
8 years ago |
Dimitar Dobrev
|
f6df3267d0
|
Fully qualified calls to constructors in the generated C#.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Kimon Topouzidis
|
797cacadb8
|
Added long doubles to the marshalling structures in the C# generator. (#842)
|
8 years ago |
Kimon Topouzidis
|
def7d44195
|
Moved the printing of fields from the C# generator to the C# printer. (#840)
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
f549b63711
|
Removed the useless and problematic mapping of typedef-ed classes to empty ones.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Joao Matos
|
73374065f6
|
Renamed MarshalContext.SupportBefore to Before.
|
8 years ago |
Dimitar Dobrev
|
3969e21586
|
Simplified some code.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Joao Matos
|
38cb8e1dbe
|
Overhaul type printer and marshal contexts design and implementation.
The goal is to simplify the design and get rid of useless type printer contexts inside type printers.
|
8 years ago |
Gilad Levi
|
5302f5870c
|
Use fixed c# statement when accessing fixed struct members
|
8 years ago |
Dimitar Dobrev
|
5f6c432f19
|
Removed all warnings in the C# part.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
realvictorprm
|
9d89764965
|
Wrapped injected classes in order to ease binding lists of redeclarations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
42facd9df1
|
Fixed the generation of parameters in the C# printer.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
52788fd0d6
|
Removed a redundant parameter.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
realvictorprm
|
f44c578be8
|
Disabled generation of disposable for incomplete structs/classes (#799)
Fixes https://github.com/mono/CppSharp/issues/798.
|
8 years ago |
realvictorprm
|
938ccf686b
|
Incomplete classes and structs are now generated for C#. (#797)
This feature is NOT coming for C++/CLI !
|
8 years ago |
Dimitar Dobrev
|
38f247b1db
|
Merged the libraries for inlines and templates into one.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
fe85a33ba1
|
Restored the renaming of enums.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
10ac0a4865
|
Fixed the getting of the template a specialised function is instantiated from.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
254e51145f
|
Moved the generation of C# bodies to their own methods.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
8 years ago |
Dimitar Dobrev
|
a1fa5bd93f
|
Changed the generation of patched v-tables to also work for class templates.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
9b7a372a3c
|
Sped up the generated C# by using sizeof instead of Marshal.SizeOf.
They are equivalent in our case because we only use blittable types.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
6bff560adc
|
Removed the usages of named pointers when patching v-tables in C#.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
e0c397d709
|
Collected internal functions of class template specialisations.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
fed72f5910
|
Ensured the C# gen correctly imports a native library with no target triple.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Dimitar Dobrev
|
3ccb5361df
|
Shortened the generated C# by not suffixing attributes.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
|
9 years ago |
Joao Matos
|
44c2be4375
|
Abstract generated method override check into AST extensions.
|
9 years ago |
Joao Matos
|
f70d1d0165
|
Unify class method specifier code generation.
|
9 years ago |
Joao Matos
|
157da89ed5
|
Unify class specifier code generation.
|
9 years ago |
Joao Matos
|
591ab6fd57
|
Refactor C# class prologue generation.
|
9 years ago |
Joao Matos
|
1e6bf9b7fd
|
Simplify code.
|
9 years ago |