アットウィキロゴ

Trace

概要

インタプリタのトレースが有効になったとき、この構造体がインタプリタに関連づけられた構造体のリストに追加される。

メンバー

  • int level; この値以下のネストレベルのみトレースを実行する?
  • Tcl_CmdObjTraceProc *proc; トレースコマンドを呼び出す手続き
  • ClientData clientData; /* Arbitrary value to pass to proc. */
  • struct Trace *nextPtr; このインタープリタの次のトレースへのポインタ
  • int flags;
  • Tcl_CmdObjTraceDeleteProc *delProc; トレースが削除されるときに呼び出される手続き

ソース

 /*
  * When an interpreter trace is active (i.e. its associated procedure is
  * executing), one of the following structures is linked into a list
  * associated with the interpreter. The information in the structure is needed
  * in order for Tcl to behave reasonably if traces are deleted while traces
  * are active.
  */
 
 typedef struct Trace {
     int level;			/* Only trace commands at nesting level less
 				 * than or equal to this. */
     Tcl_CmdObjTraceProc *proc;	/* Procedure to call to trace command. */
     [[ClientData]] clientData;	/* Arbitrary value to pass to proc. */
     struct Trace *nextPtr;	/* Next in list of traces for this interp. */
     int flags;			/* Flags governing the trace - see
 				 * Tcl_CreateObjTrace for details. */
     Tcl_CmdObjTraceDeleteProc *delProc;
 				/* Procedure to call when trace is deleted. */
 } Trace;
最終更新:2011年11月07日 19:14