fix a bug in REPL which often causes an error with "quit" command

When run "quit" command in REPL, terminates iOS simulator session.
This commit is contained in:
Watson
2013-03-12 11:18:51 +09:00
parent 2542aa1d7e
commit 088080b681

View File

@@ -793,6 +793,9 @@ again:
add_history([expr UTF8String]);
NSString *res = [self replEval:expr];
if (res == nil) {
if ([line compare:@"quit"] == NSOrderedSame) {
terminate_session();
}
break;
}
printf("=> %s\n", [res UTF8String]);