From a34b771cd9cc823260407b2905312b3be05390db Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 24 Aug 2008 18:54:47 +0200 Subject: Add a couple of debugging statements. --- MLKReadEvalPrintLoop.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'MLKReadEvalPrintLoop.m') diff --git a/MLKReadEvalPrintLoop.m b/MLKReadEvalPrintLoop.m index 53943bc..de2f4f1 100644 --- a/MLKReadEvalPrintLoop.m +++ b/MLKReadEvalPrintLoop.m @@ -98,8 +98,10 @@ static const char *prompt (EditLine *e) { pool = [[NSAutoreleasePool alloc] init]; printf ("Loading init.lisp.\n"); +#if 1 NS_DURING { +#endif input = [NSInputStream inputStreamWithFileAtPath:@"init.lisp"]; stream = LAUTORELEASE ([[MLKStream alloc] initWithInputStream:input]); @@ -107,6 +109,7 @@ static const char *prompt (EditLine *e) { [MLKInterpreter load:stream verbose:YES print:YES]; success = [MLKInterpreter load:stream verbose:YES print:YES]; [input close]; +#if 1 } NS_HANDLER { @@ -115,6 +118,7 @@ static const char *prompt (EditLine *e) { [[localException reason] UTF8String]); } NS_ENDHANDLER; +#endif printf ("Done.\n\n"); @@ -151,9 +155,11 @@ static const char *prompt (EditLine *e) { #if 1 NS_DURING #else +#ifdef GNUSTEP GSDebugAllocationActive (YES); [NSObject enableDoubleReleaseCheck:YES]; NSZombieEnabled = YES; +#endif #endif { int i; -- cgit v1.2.3