triton
de5e364a8a
Second round at build and packaging scripts.
10 years ago
triton
e7c1393296
Updated Premake 5 Windows and Linux binaries.
...
Remove Premake 5 Linux 32-bits binary.
10 years ago
triton
a68537f288
Added some work-in-progress build and packaging scripts.
10 years ago
Joao Matos
5661d248ac
Remove Nuget package install from apt-get in Travis.
...
We're getting an error installing the package E: Unable to locate package nuget
10 years ago
Dimitar Dobrev
a5a17a493e
Changed the comparer for parameter types to a singleton.
...
The class has no fields so the same value was allocated many times, it was wasteful.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
477dd914cb
Fixed setters of indexers when the key is type-mapped.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
1c52e67bb8
Fixed the wrapping of indexers returning value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
d3644dcf5d
Fixed a crash with abstract overrides originating from secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e36d6f0aae
Improved the handling of char arrays by using desugaring.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
01a087117e
Improved the support for default args by ignoring a temporary expression.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
144b9546de
Fixed another case of a default arg assigned through an implicit ctor.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a18479e1db
Generated valid code for wrapping char arrays.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
5dde771d77
Removed a redundant field in the generated code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
bd5df799c9
Complemented comparison operators with the first parameter not of the containing type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
9fccfc6f1d
Excluded an inexplicably failing test from the run on the Linux CI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
c2a569e24d
Only patched the v-table entries for non-dtors in user-derived classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
2885200732
Changed the native ctor to only patch the v-table entry of the virtual dtor, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
132509203b
Improved the handling of function calls in default args.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
8ebefa1f37
Added support for call expressions in default args.
...
The conversion of an expression to a string has been moved to the generator because a function may have been renamed or converted to a property.
However, since that string is language-specific, it should be created in the generator anyway. Therefore we should (over time):
1. Move any string manipulation from the pass for default args to the printer for expressions which is in turn used only by the generator;
2. Remove the Statement.String property (when 1. is entirely complete).
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
d0ad681a61
Extended the AST and the parser to support call expressions in default args.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
8a68d2d16c
Fixed the generation of overrides of virtuals from secondary bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
39a368894d
Reformatted the extension methods for classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
53074cca58
Simplified the fix for calling the dtor of an abstract type with MinGW.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
e4a40d0eed
Revert "Fixed a crash when calling the dtor of an abstract type with MinGW."
...
This reverts commit 67e6e1204c .
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
176262c700
Clarified the handling of dtor calls when abstract classes are involved.
...
Thanks to tritao for his remarks.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
67e6e1204c
Fixed a crash when calling the dtor of an abstract type with MinGW.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
05a44565bd
Ensured a virtual dtor is called even if the base dtor is not virtual.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
fbb2f941c4
Based on Abhinav Tripathi's work: extracted delegates in order to reuse them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
7aab75f44d
Regenerated the parser bindings to reflect all updates from the last two months.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
0f8474893c
Removed 3 redundant fields from the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
3cb44dcef0
Split the creation of internal parameters from their string representation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
0950b869a1
Fixed the offsets of fields when using multiple inheritance.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
51ca678fa8
Removed a useless reference when auto-compiling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
6380e5d7ea
Called Marshal.FreeHGlobal only if the instance was created by Marshal.AllocHGlobal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
6f8c942b0a
Adjusted pointers when calling functions from secondary or non-dynamic bases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
7d66303ed1
Extracted a constant and deleted a no longer used method.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
João Matos
64dc78018f
Update GettingStarted.md
10 years ago
Dimitar Dobrev
81e6ba5ea8
Ensured managed v-tables remain with no empty entries.
...
This doesn't fix any bug that I know of.
However, the patching was obviously wrong for v-tables with repetitive function pointers.
Their managed counterparts ended up with "holes" where the repetions were.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
João Matos
7667ebbf1a
Update GettingStarted.md
10 years ago
Dimitar Dobrev
2e2dbef965
Fixed the OS X build.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
324e241c25
Fixed the internal abstract impls with default params of a pointer type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
54e8a16fd1
Reverted the representation of Booleans as managed Booleans except in internal structs.
...
Managed booleans are more CPU-efficient than bytes, and some problems with code generation are fixed.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
4f574845fa
Made interface impls contain the interface as their original name-space.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
6a17e4fb4c
Disabled the auto-committing of parser bindings until it's properly fixed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
7c49454faa
Use the Github email when doing Git pushes from AppVeyor.
10 years ago
CppSharp CI
9c24b3f84e
CI: Re-generated the parser bindings
10 years ago
Dimitar Dobrev
4f241d4e62
Fixed the automatic commit after regenerating the parser bindings at AppVeyor.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
89874c1b20
Make Travis YAML parser happy.
10 years ago
Dimitar Dobrev
a20e3aca91
Properly set virtual tables up in the internal ctor by pointer.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
João Matos
a6feac65ed
Attempt to fix test success evaluation on Travis.
10 years ago