2 # Copyright 2016,2020 Ian Jackson
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 # There is NO WARRANTY.
6 proc manyset {list args} {
7 foreach val $list var $args {
13 namespace eval debug {
18 # debug::setup ON-DEBUG
19 # which will result in calls to [concat ON-DEBUG [list MESSAGE]]
20 # (or ON-DEBUG may be "" in which case messages are discarded)
29 if {![llength $debug]} return
30 set ns [uplevel 1 namespace current]
31 uplevel #0 $debug [list "DEBUG $ns $m"]