Detailed Description
This group includes all functions used to access the calculator stack.
Function Documentation
Get number of elements on the RPL stack (DEPTH)
- Returns:
- Number of elements on stack or zero if empty
Pop one element off the stack (DROP)
Pop several elements off the stack (DROPN)
Get an object at an arbitrary stack level. Stack remains unaltered.
- Parameters:
-
level | Stack level to pick from (1 = first stack level) |
- Returns:
- Object in requested level of the stack. Returns NULL if requested level doesn't contain an object.
Pop an object from the stack. Stack Level 1 is dropped.
- Returns:
- Object in level 1 of the stack. Returns NULL if stack is empty.
Push an object to the stack.
If the object to push was created in the C-heap, a copy in TEMPOB will be automatically created.
- Parameters:
-
- Returns:
- Returns TRUE if push was successful, FALSE on error
Push saturn flag FALSE if arg is FALSE, TRUE otherwise.
- Parameters:
-
arg | Boolean True/False to push on the calculator stack |
- Returns:
- Returns TRUE if push was successful, FALSE on error
Swap elements on level 1 and 2 (SWAP)