lua-users home
lua-l archive

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


--- 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