Stack traces: Difference between revisions

Content deleted Content added
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</pre>
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.


<pre>#<p>
<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