lua-users home
lua-l archive

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


see lua_pushvalue()

On 13-Feb-06, at 11:20 AM, Sokolov Yura wrote:

Am I wrong or there is no any way to make a copy of stack cell in the
official API?
May be it would be usefull to have a simple function:

lua_dup
         void lua_dup (lua_State *L, int index);

Pushes the element at the given position on the top without removal (
copies them).





--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.