Subject:
[ruby-ffi] Re: Automatic Struct Layout
From:
rogerdpack
Date:
12/18/09 12:04 PM
To:
ruby-ffi

> It does, the wiki just hasn't been updated ... in about a year - so
> feel free to fix it up.

Cool, thanks.

> That will calculate the offset of :b automatically for you, and take
> into account 32bit vs 64bit, minimum alignments, tail padding, etc.

Question
How does ffi deal with #pragma pack in msvc?

ex:
gc.c:#pragma pack(push, 1) /* magic for reducing sizeof(RVALUE): 24 ->
20 */
Just wondering.
Thanks.
-r