[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can't pass a struct by value to LuaJIT FFI varargs function?
- From: Enrico Colombini <erix@...>
- Date: Tue, 25 Jan 2011 09:40:21 +0100
On 25/01/2011 0.47, Mike Pall wrote:
1. On x86, you can pass the components of the struct to simulate
ffi.C.objc_msgSend(r, s, 0, 0, 32, 32, a, b)
This doesn't work on x64 because of the crazy rules for passing
structs by value in the x64 ABI.
Notes like this, and many others you posted here, will be invaluable in
(that's another way to say: we know you're overworked, but please try to
collect them for inclusion in the docs, if you can)