lua-users home
lua-l archive

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


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?