lua-users home
lua-l archive

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


On Tue, Sep 16, 2008 at 5:58 PM, David Dunham <david@gamehouse.com> wrote:
> I'm calling an arbitrary Lua function from C. Is there any way to tell
> whether I should push arguments or not?

just push them! they'll be ignored if unneeded.

of course, it's possible that a function has different behaviour with
and without parameters; but if you want to support both you'll need
far more information than just a list of parameters

-- 
Javier