
[Generator] Bad pointer type overriding.
Posted Friday, 8 January, 2010 - 17:48 by nythrix| Project: | The Open Toolkit library |
| Version: | 1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | confirmed |
Jump to:
Description
Overriding a pointer type with another pointer type through overrides.xml, causes the two levels of indirection to be added up.
Existing type: IntPtr**
Required type: IntPtr*
Resulting type: IntPtr***
Can be reproduced from the info in #1368: [OpenCL] Several delegates buggy.


Comments
#1
I have found the cause (Type.cs:136, changing CurrentType does not reset the Pointer property). Unfortunately, the generator relies on this faulty behavior so this will be tricky to solve.