lua-users home
lua-l archive

Re: lua_setfield popping the table from the stack?

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


Hallo,
On 8/24/06, Lua <lua@kunz.ca> wrote:
 static void lua_RegisterValues(lua_State*L,const
tExportedNames* pExportedNames)
 {
 while (pExportedNames->pName!=NULL) {
 if (pExportedNames->pSubNames!=NULL) {
 lua_newtable(L);
 lua_pushvalue(L,-1);
 ----********
lua_setfield(L,-3,pExportedNames->pName);
 -3? Is there a table there?
--
-alex
http://www.ventonegro.org/

AltStyle によって変換されたページ (->オリジナル) /