Add prototype of global action support

This commit is contained in:
Naoki Takezoe
2015-02-07 13:12:05 +09:00
parent 73c76a5a88
commit 7e77398645
6 changed files with 138 additions and 26 deletions

View File

@@ -37,4 +37,10 @@ object ControlUtil {
def using[T](treeWalk: TreeWalk)(f: TreeWalk => T): T =
try f(treeWalk) finally treeWalk.release()
def ignore[T](f: => Unit): Unit = try {
f
} catch {
case e: Exception => ()
}
}