João Matos
51ddae75fc
Merge pull request #109 from ddobrev/master
...
Added a check for 'null' before getting the native pointer of a wrapped object.
12 years ago
Dimitar Dobrev
8a502835f7
Added a check for 'null' before getting the native pointer of a wrapped object.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
ad0a1da488
Merge pull request #107 from ddobrev/master
...
Prevented renaming of methods when a base class has a property of the same name
12 years ago
Dimitar Dobrev
7ecafc9858
Prevented renaming of methods when a base class has a property of the same name. Made the delegates used in abstract implementations prefixed with an underscore and internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
2038c796ea
Merge pull request #105 from ddobrev/master
...
Changed the check whether to invoke a property in the v-tables to work around the non-shared methods in v-tables
12 years ago
Dimitar Dobrev
0e37a62726
Changed the check whether to invoke a property in the v-tables to work around the non-shared methods in v-tables. Set the function signature to an empty string rather that null by default.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
658a9db1f6
Merge pull request #103 from ddobrev/master
...
Added automatic building of the generated source files
12 years ago
João Matos
342ce1234c
Merge pull request #91 from sk-havok/req/unhandled_property_setter
...
We only handle functions and fields in property setters
12 years ago
Dimitar Dobrev
7e2b1fd417
Added automatic building of the generated source files.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
c7612248fd
Added method signatures debugging output to vtable delegates.
12 years ago
triton
000b45cf2b
Fixed duplicated vtable delegate generation by changing the way the unique name is generated.
...
Previously, we could get duplicated names due to different named methods (setFoo and setFoo1) having overloads (and names for them would be setFoo11 [id: 11] and setFoo11 [id: 1]).
12 years ago
triton
23fc25faca
Fixed generation of vtable components.
...
Only generate delegates for each unique vtable component entry and skip vtable hook registration for duplicated entries.
12 years ago
triton
e478fa3721
Released a new version.
12 years ago
triton
9bb39e92eb
Fixed a tricky bug that was breaking generation of vtables interop code.
...
The generation problem manifested as duplication of methods in the AST which was breaking the numbering logic and caused duplicated delegates.
The root problem was that in the parser we sometimes would walk through methods but forget to add them to their respective classes.
No test because it's tricky to trigger it.
12 years ago
triton
c242a3f320
Formatting changes.
12 years ago
triton
0801e98823
Fixed generation of C# vtable interop code. Update the vtable generation index in each iteration.
12 years ago
João Matos
20c06646f4
Merge pull request #81 from ddobrev/master
...
Consider indirect args and value type - pointer type pairs when generating properties
12 years ago
Dimitar Dobrev
47f03ae68c
Added tests about the dereference and prefix/postfix operators. Fixed multiple inheritance not to include operators in interfaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
João Matos
795e50f0e1
Merge pull request #100 from sk-havok/req/typos_in_docs
...
Fix some typos in the docs
12 years ago
Stephen Kennedy
d6ecd455c6
Fix some typos in the docs
12 years ago
Dimitar Dobrev
9255ac4144
Added the method to its block to maintain the connection between them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
2b53801510
Prefixed "System.Runtime.InteropServices" with "global::" to prevent name collision.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
c0ed93cd5e
Prevented postfix and dereference operators from being wrapped as such because C# does not support them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
9deaa403bc
Fixed a crash when setting up v-tables.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
961316f96d
Fixed the new tests for properties to work around the existing unrelated bug of incorrect field values.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
56385a453f
Fixed the generation of v-table delegates to take into account indirect return types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
501f123277
Removed a check for const-ness because of a parser bug. Added tests for properties of complex types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
014c7df874
Added "register" to the list of verbs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ff14f39ed4
Fixed the generation of properties by considering value and read-only pointer types the same for complex types. Fixed the counting of parameters to consider indirect ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ab548cb6da
Fixed the generation of properties to take indirect return types into account. Added "return" as a verb.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a18d724368
Added OrderedSet utility class.
12 years ago
triton
8d4670d4b1
Added class documentation to the ParserGen class.
12 years ago
triton
71de29790e
Added a new pass to check for duplicated vtable components.
...
This helps workaround some Clang's work-in-progress vftable layouting implementation.
12 years ago
João Matos
a632806eff
Merge pull request #92 from sk-havok/req/unify_debug_output
...
Unify debugging output
12 years ago
Stephen Kennedy
0957843c4d
Unify debugging output
...
Route all debugging output through Driver.Diagnostics
12 years ago
triton
b51687a2f6
Fixed vtable setup call generation when there are no valid methods in the vtable.
12 years ago
triton
44ce759a33
V-table method delegates need to take into account same-named overloads.
...
Fixes #88 .
12 years ago
triton
a219ea4b84
Disabled symbol checking by default.
...
This feature still needs some work to be totally robust and it makes the tool not generate bindings by default so disable it for now.
12 years ago
João Matos
b1dfdea8d3
Merge pull request #90 from sk-havok/req/non_class_base
...
Handle non-TagDecl bases by ignoring them (#89 )
12 years ago
Stephen Kennedy
972e08ba67
We only handle functions and fields in property setters
12 years ago
Stephen Kennedy
6cff480f2b
Update test with method which should appear in "Derived"
12 years ago
Stephen Kennedy
0c7a72c400
Hack for CLI version
12 years ago
Stephen Kennedy
4b782d7af3
Add a test case for the Curiously Recurring Template Pattern
12 years ago
Stephen Kennedy
00bf3714ca
Hack to silently ignore non-class base class (e.g. templates etc)
12 years ago
João Matos
e8ce55e9f1
Merge pull request #86 from sk-havok/req/mismatched_braces
...
Avoid mismatched braces when the decl is neither a Function nor a Field
12 years ago
João Matos
d120b11280
Merge pull request #87 from sk-havok/req/partial_specialization
...
Handle partial specializations like normal specializations (not at all!)
12 years ago
Stephen Kennedy
9cfc8c23dc
Handle partial specializations like normal specializations (not at all!)
12 years ago
Stephen Kennedy
84f0942a76
Avoid mismatched braces when the decl is neither a Function nor a Field
12 years ago
triton
04428fcb2b
Released a new VS version.
12 years ago
triton
1dcd8211fa
Removed CLI type printer unit tests.
...
The code paths are already being exercised with the regular tests.
12 years ago