NSIS/Docs/src/stack.but
rainwater 584d3d2524 Updated docs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1739 212acab6-be3b-0410-9dea-997c60f758d6
2002-11-15 18:45:47 +00:00

19 lines
788 B
Text

\S1{stackinst} Stack Support
\S2{Exch} Exch
\c [user_var] | stack_index
When no parameter is specified, exchanges the top two elements of the stack. When a parameter is specified and is a user variable, exchanges the top element of the stack with the parameter. When a parameter is specified and is a positive integer, the parameter specifies which item on the stack that the top of the stack is swapped with. If there are not enough items on the stack to accomplish the exchange, a fatal error will occur (to help you debug your code :).
\S2{Pop} Pop
\c user_var(out)
Pops a string off of the stack into user variable $x. If the stack is empty, the error flag will be set.
\S2{Push} Push
\c string
Pushes a string onto the stack. The string can then be Popped off of the stack.