Stack traces: Difference between revisions
Content deleted Content added
m →{{header|Unicon}}: IPL/Unilib |
|||
Line 286: | Line 286: | ||
# Using 1 as argument omits the trace of buildStackTrace itself |
# Using 1 as argument omits the trace of buildStackTrace itself |
||
every write("\t",!buildStackTrace(1)) |
every write("\t",!buildStackTrace(1)) |
||
end</ |
end</lang> |
||
{{libheader|Unicon Code Library}} |
{{libheader|Unicon Code Library}} |
||
[http://tapestry.tucson.az.us/unilib/pack_Utils.html buildStackTrace in Utils] code taken verbatim. |
[http://tapestry.tucson.az.us/unilib/pack_Utils.html buildStackTrace in Utils] code taken verbatim. |
||
< |
<lang Unicon>#<p> |
||
# Compute the current stack trace. Starting at level <i>n</i> above |
# Compute the current stack trace. Starting at level <i>n</i> above |
||
# the current procedure. Here, <i>n</i> defaults to 0, which will |
# the current procedure. Here, <i>n</i> defaults to 0, which will |