test.tcl

来自「多发法定阿凡阿道夫埃罚罚 埃担罚大多发叮罚罚多发」· TCL 代码 · 共 49 行

TCL
49
字号
proc ShowEventProp {id} {    global fp    puts $fp "  <---- properties ----"    puts $fp "  npiName=[npi_get $id -npiName]"    puts $fp "  npiFullName=[npi_get $id -npiFullName]"    puts $fp "  npiType=[npi_get $id -npiType]"    puts $fp "  npiFile=[npi_get $id -npiFile]"    puts $fp "  npiLineNo=[npi_get $id -npiLineNo]"    puts $fp "  >---- properties ----"}proc ShowHandleProp {Handle type} {    global fp    puts $fp "    <---$type --->"    if {$Handle != "NULL"} {        puts $fp "    npiType = [npi_get $Handle -npiType]"        puts $fp "    npiName = [npi_get $Handle -npiName]"        puts $fp "    npiLineNo = [npi_get $Handle -npiLineNo]"    }    puts $fp "    <---end of $type --->"}proc ShowEventRelationship {id} {    global fp    puts $fp "  <---relationship --->"    set Scope [npi_handle $id -npiType npiScope]    ShowHandleProp $Scope "npi_handle \$id -npiType npiScope"    puts $fp "  <---end of relationship --->"}proc ShowEventPropAndRelationship {} {    global g_NamedEvent    global fp    set var $g_NamedEvent    puts $fp "<---begin showing Memory information--->"    ShowEventProp $var    ShowEventRelationship $var    puts $fp "<---end of showing Memory information--->"}    set log_file [file join [file dirname [info script]] [file tail [info script]].out]set fp [open $log_file w]fconfigure $fp -buffering nonenpi_register_cb -npiModuleBased NamedEvent ShowEventPropAndRelationshipnpi_traverse_model -npiModuleBasedclose $fp

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?