summaryrefslogtreecommitdiff
path: root/MLKRoot.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 12:01:30 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 12:01:30 +0200
commit34682b0b087a9ced1f23a91f67167f71f304a4a8 (patch)
tree70ef9e0a697a3fdfa194ce4819d55ce2b36fc8af /MLKRoot.m
parent84597fcf74fc74672fe664456e62ec6be5f2b066 (diff)
Switch from NS_DURING..NS_HANDLER..NS_ENDHANDLER to @try..@catch..@finally.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r--MLKRoot.m10
1 files changed, 2 insertions, 8 deletions
diff --git a/MLKRoot.m b/MLKRoot.m
index 3206846..2a25b25 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -141,22 +141,16 @@ load (id _data, NSString *fileName, id _marker)
forSymbol:[sys intern:@"*LOAD-LEVEL*"]];
[ctx pushContext];
- NS_DURING
+ @try
{
success = [MLKInterpreter load:stream verbose:YES print:YES];
}
- NS_HANDLER
+ @finally
{
[MLKDynamicContext popContext];
LRELEASE (ctx);
[input close];
- [localException raise];
}
- NS_ENDHANDLER;
-
- [MLKDynamicContext popContext];
- LRELEASE (ctx);
- [input close];
[ostream writeString:@"; \\"];
for (i = 0; i < 68 - 2*level; i++)