Regular API function

simMoveStackItemToTop

Description Moves a stack into to the top of the stack. See also simPopStackItem and the other stack functions.
C synopsis simInt simMoveStackItemToTop(simInt stackHandle,simInt cIndex)
C parameters
stackHandle: a stack handle obtained with simCreateStack.
cIndex: the zero-based index of the item to move.
C return value
-1 in case of an error.
Lua synopsis
Lua parameters
Lua return values