|
From: Jeremy <je...@gm...> - 2009-04-30 22:01:37
|
I have a struct foo:
C-STRUCT: foo
{ "char*" "name" }
{ "bool" "on" }
{ "short" "parents" }
{ "void*" "fn1" }
{ "void*" "fn2" }
{ "ushort" "flags" } ;
On mac ppc, access to this via foo-<member> works fine. On 64 bit linux the
offset the c++ library uses is different to what factor expects.
The c++ code returns a struct where the "parents" value has an offset of
10. Factor expects an offset of 12:
"parents" "Class" offset-of ===> 12
I could work around this on a per platform basis, but I'm curious as to whether
there is a better way.
Cheers,
Jeremy
|