lua-users home
lua-l archive

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

I need a function / macro to get the absolute stack index out of a possibly negative one.
Is this missing in the API or did I just not find it?
It would be quite useful since it ensures the index stays valid even after pushing something on the stack.
This way I can avoid some unnecessary stack manipulation with "lua_pushvalue", just to put it on a "known" stack index.