[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C++ creation of object, and Lua co-calling
- From: Gary Makin <garym@...>
- Date: Mon, 17 Jun 2002 20:44:10 +1000
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.
Gary
On 17/6/02 19:31, "Robert Sadedin" <serenity@nosubstancesoftware.com> 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).