pop.lua 623 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. tag = 'transform',
  3. summary = 'Pop one of the stacks.',
  4. description = [[
  5. Pops the transform or render state stack, restoring it to the state it was in when it was last
  6. pushed.
  7. ]],
  8. arguments = {
  9. stack = {
  10. type = 'StackType',
  11. default = [['transform']],
  12. description = 'The type of stack to pop.'
  13. }
  14. },
  15. returns = {},
  16. variants = {
  17. {
  18. arguments = { 'stack' },
  19. returns = {}
  20. }
  21. },
  22. notes = [[
  23. If a stack is popped without a corresponding push, the stack "underflows" which causes an error.
  24. ]],
  25. related = {
  26. 'Pass:push',
  27. 'StackType'
  28. }
  29. }