diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-02 12:01:30 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-09-02 12:01:30 +0200 |
commit | 34682b0b087a9ced1f23a91f67167f71f304a4a8 (patch) | |
tree | 70ef9e0a697a3fdfa194ce4819d55ce2b36fc8af /MLKRoot.m | |
parent | 84597fcf74fc74672fe664456e62ec6be5f2b066 (diff) |
Switch from NS_DURING..NS_HANDLER..NS_ENDHANDLER to @try..@catch..@finally.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r-- | MLKRoot.m | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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++) |