mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
don't make an eval the very first time
This commit is contained in:
@@ -172,7 +172,14 @@ current_repl_prompt(NSString *top_level)
|
||||
{
|
||||
char question = '?';
|
||||
if (top_level == nil) {
|
||||
top_level = [delegate replEval:@"self"];
|
||||
static bool first_time = true;
|
||||
if (first_time) {
|
||||
top_level = @"main";
|
||||
first_time = false;
|
||||
}
|
||||
else {
|
||||
top_level = [delegate replEval:@"self"];
|
||||
}
|
||||
question = '>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user