[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: passing tables to registered functions
- From: "xenarcher" <nickl@...>
- Date: Thu, 21 Nov 2002 21:19:52 -0000
Say I've got the following C function:
int my_c_function(lua_State *l)
{
...
}
And later on in the code, I register my_c_function():
lua_register(L, "my_lua_function", my_c_function);
Now, say I have the following Lua code:
function foo(a, b, ...)
my_c_function(a, b, arg)
end
In my_c_function(), how do I dereference the values contained in the
arg table passed to it?