Regular API function

simPopStackItem

Description Removes the top item in the stack, effectively reducing the stack size by one. See also simMoveStackItemToTop and the other stack functions.
C/C++
synopsis
simInt simPopStackItem(simInt stackHandle,simInt count)
C/C++
parameters
stackHandle: a stack handle obtained with simCreateStack.
count: the number of items to pop, or 0 to clear the stack.
C/C++
return value
-1 in case of an error, otherwise the new size of the stack.
Lua
synopsis
Lua
parameters
Lua
return values
Python
synopsis