previous next top complete contents complete index framed top this page unframed
Figure 51–4. $writeCalls
| PROCEDURE $writeCalls (OPTIONAL POINTER(textFile) f; OPTIONAL POINTER($coroutine) p; OPTIONAL BITS ctrlBits); |
The code that handles the CALLS response to errMsg is available as the PROCEDURE $writeCalls.
f is the file to which the list of callers is written. If f is NULLPOINTER, logFile is assumed. p is the coroutine whose call chain is to be listed. If p is NULLPOINTER, the current coroutine is assumed.
The only valid ctrlBits bit is $ignoreMe. If this bit is set, $writeCalls's immediate caller is not included in the call list (used only if the current coroutine's call chain is being listed).
A sample output from $writeCalls is shown in Example 51–5. The exact output format is subject to change.
Example 51–5. Sample $writeCalls Output
| DECIMAL OFFSET MODULE.PROCEDURE (most recently called 1st) -------------- ---------------- 68 WC.INITIALPROC 62384 $KERMOD.$NEWDATASEC 16992 $MAINEX.$INVOKEMODULE 17324 $MAINEX.EXECUTEMODULE 18542 $MAINEX.$MAINSAILEXEC 87694 $KERMOD.RUNMAINSAIL 13984 $KERMOD.INITIALPROC |
MAINSAIL Language Manual, Section 51.3