Regular API function

simMoveStackItemToTop

Description Removes the top item in the stack, effectively reducing the stack size by one. 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
-

All regular API functions on one page