[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT FFI callbacks (was Re: Calling lua functions from C when using luajit ffi.)
- From: Peter Cawley <lua@...>
- Date: Tue, 15 Nov 2011 16:02:15 +0000
On Tue, Nov 15, 2011 at 3:47 PM, Tim Caswell <email@example.com> wrote:
> Well, it seems this works for most callbacks, but not all. In the
> docs I see it says it doesn't work with "functions with pass-by-value
> aggregate argument or result types". I'm not sure what that means.
> My function signature is:
> typedef uv_buf_t (*uv_alloc_cb)(uv_handle_t* handle, size_t suggested_size);
uv_buf_t is a structure containing two things, i.e. an aggregate type.
Thus uv_alloc_cb has an aggregate result type, and so is unsupported.