mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
c1a9d5c77a
commit
e3ed334bcb
BIN
.github/workflows.rar
vendored
BIN
.github/workflows.rar
vendored
Binary file not shown.
@ -6,7 +6,7 @@
|
||||
#ifndef __EMSCRIPTEN__
|
||||
|
||||
std::string f_input(){
|
||||
return pkpy::getline();
|
||||
return pkpy::platform_getline();
|
||||
}
|
||||
|
||||
int main(int argc, char** argv){
|
||||
@ -20,7 +20,7 @@ int main(int argc, char** argv){
|
||||
while(true){
|
||||
vm->_stdout(vm, need_more_lines ? "... " : ">>> ");
|
||||
bool eof = false;
|
||||
std::string line = pkpy::getline(&eof);
|
||||
std::string line = pkpy::platform_getline(&eof);
|
||||
if(eof) break;
|
||||
need_more_lines = pkpy_repl_input(repl, line.c_str());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user