lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Nov 15, 2011 at 3:47 PM, Tim Caswell <tim@creationix.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.