Ticket #178 (closed defect: fixed)
ArgumentError Exception: can't convert C/Objective-C value of type `[4d]' to Ruby object
| Reported by: | dognotdog@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | ArgumentError array convert |
| Cc: |
Description
Trying to use a function with the following .bridgesupport entry:
<function name='vCreate'>
<arg type='d'/>
<arg type='d'/>
<arg type='d'/>
<arg type='d'/>
<retval type='{_vt=[4d]}'/>
</function>
Function prototype:
typedef double vmfloat_t;
typedef struct _vt
{
vmfloat_t farr[4];
} vector_t;
vector_t vCreate(vmfloat_t a, vmfloat_t b, vmfloat_t c, vmfloat_t d);
An ArgumentError exception is raised on the return type. It's simply a struct containing a simple array, so automatic boxing/unboxing should work. Possible fix through additions to the bridgesupport entry?
trunk/ r766
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


