[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C - Lua Interfacing and best way to push args
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 7 Jul 2014 20:18:11 +0200
On Mon, Jul 7, 2014 at 4:28 PM, Javier Guerra Giraldez
> - manually build the call stack, complying with your compiler exact
> value layout; cast your function pointers to a non-argument one and
> call it. this would be akin to the reverse of va_arg().
It's even more expensive (if you measure expensive by complexity)
since the exact ABI is tricky and depends on the platform - something
like libffi is needed to do the job.