From 34682b0b087a9ced1f23a91f67167f71f304a4a8 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 2 Sep 2008 12:01:30 +0200 Subject: Switch from NS_DURING..NS_HANDLER..NS_ENDHANDLER to @try..@catch..@finally. --- MLKRoot.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'MLKRoot.m') 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++) -- cgit v1.2.3