Hi,

offsetof() is not supported by current Cython, and I have not found any
workaround (except hardcoding offsets for a specific architecture and
compiler, but this is obviously wrong).

offsetof(struct_type, member) is a C macro that expands to the offset
of the member in the struct, in bytes.  Could you add support for it,
perhaps like sizeof as a special case in the parser?

And many thanks for the whole project! ☺

-- 
Emmanuel Gil Peyrot
XMPP: <linkma...@linkmauve.fr>
OpenPGP: 24B1D609

Attachment: pgpNAHf9fQpmU.pgp
Description: PGP signature

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to