-
Notifications
You must be signed in to change notification settings - Fork 146
Macros
rollynoel edited this page Jun 16, 2013
·
1 revision
Added by Bill Wood
System.Console.WriteLine()
System.Console.WriteLine(<expr>)
print , [... ,]
System.Console.Write(<expr>)
System.Console.Write(' ')
...
System.Console.WriteLine(<exprN>)
assert
assert
unless (<expr>):
raise Boo.AssertionFailedException('(<expr>)')
assert ,
unless (<expr>):
raise Boo.AssertionFailedException(<string>)
using
using:
try:
<block>
ensure:
pass
using [, ...]:
try:
<block>
ensure:
if (__disposable__ = (<object> as System.IDisposable)):
__disposable__.Dispose()
__disposable__ = null
...
using = [, ...]:
try:
<object> = <expr>
...
<block>
ensure:
if (__disposable__ = (<object> as System.IDisposable)):
__disposable__.Dispose()
__disposable__ = null
...
using [, ...]:
try:
__using1__ = <expr>
...
<block>
ensure:
if (__disposable__ = (__using1__ as System.IDisposable)):
__disposable__.Dispose()
__disposable__ = null
...
lock
lock [, ...]:
__monitor1__ = <expr>
System.Threading.Monitor.Enter(__monitor1__)
try:
<block>
ensure:
System.Threading.Monitor.Exit(__monitor1__)
debug
debug
System.Diagnostics.Debug.WriteLine('<debug>')
debug
System.Diagnostics.Debug.WriteLine(<expr>)
debug , [... ,]
System.Diagnostics.Debug.Write(<expr>)
System.Diagnostics.Debug.Write(' ')
...
System.Diagnostics.Debug.WriteLine(<exprN>)