[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: setglobals and Lua 5.0
- From: "zeusedit" <jussi.jumppanen@...>
- Date: Thu, 01 May 2003 23:34:47 -0000
--- In lua-l@yahoogroups.com, Wim Couwenberg <w.couwenberg@c...>
wrote:
> > //-- push macro name (first upvalue)
> > lua_pushvalue(pLuaState, lua_upvalueindex(1));
>
> So now the macro name is at the _top_ of the stack. You
> can use -1 as a stack index to retrieve it:
>
> String szFunction = lua_tostring(pLuaState, -1);
Wim,
As always your advice was 100% accurate. The macros are now
running perfectly :)
Thank you once again for your most valuable help.
Cheer Jussi