forked from Mirror/wren
Merge branch 'master' of https://github.com/munificent/wren
This commit is contained in:
@ -90,8 +90,12 @@ static int runRepl(WrenVM* vm)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// TODO: Handle failure.
|
||||
wrenInterpret(vm, "Prompt", line);
|
||||
// Do nothing if we received an empty line.
|
||||
if (strcmp(line, "\n") != 0)
|
||||
{
|
||||
// TODO: Handle failure.
|
||||
wrenInterpret(vm, "Prompt", line);
|
||||
}
|
||||
|
||||
free(line);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user