One thing I forgot to mention: If I switch the struct to use doubles, then
everything works fine (which is probably why this didn't get caught sooner,
since the appkit types all use doubles)
On 2012/03/13, at 22:06, Fjölnir Ásgeirsson wrote:
> I've been struggling with accessing C structs from
I've been struggling with accessing C structs from ruby. The problem is:
I expose a struct from my framework (definition below). However when
accessing/allocating it from ruby it seems the offsets are off by 4 bytes (as
if macruby think it's supposed to be a double)
Definition:
#ifndef __SCRIP