Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   STACK offset /block /word /func /args /size /depth /limit

DESCRIPTION

Returns stack backtrace or other values.

STACK is a native value.

ARGUMENTS

  • offset -- Relative backward offset (integer!)

REFINEMENTS

  • /block -- Block evaluation position
  • /word -- Function or object name, if known
  • /func -- Function value
  • /args -- Block of args (may be modified)
  • /size -- Current stack size (in value units)
  • /depth -- Stack depth (frames)
  • /limit -- Stack bounds (auto expanding)

#SOURCE

stack: make native! [  [
    "Returns stack backtrace or other values."
    offset [integer!] "Relative backward offset"
    /block "Block evaluation position"
    /word "Function or object name, if known"
    /func "Function value"
    /args "Block of args (may be modified)"
    /size "Current stack size (in value units)"
    /depth "Stack depth (frames)"
    /limit "Stack bounds (auto expanding)"
] ]

Clone this wiki locally