lua-users home
lua-l archive

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

When you create the table with lua_newtable() it will be on the top of the
stack. Just use lua_setglobal() to give it a name.


On 17/6/02 19:31, "Robert Sadedin" <> wrote:

> Hmmm.
> How do I create a labeled table from within c++ for lua?
> I've got the members added by using a function array and the table should
> pass in the id which can referenced through the array, but I don't know how
> to register the table from c++ for lua with a given name (functions no
> sweat, using closures).