mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30: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__
|
#ifndef __EMSCRIPTEN__
|
||||||
|
|
||||||
std::string f_input(){
|
std::string f_input(){
|
||||||
return pkpy::getline();
|
return pkpy::platform_getline();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv){
|
int main(int argc, char** argv){
|
||||||
@ -20,7 +20,7 @@ int main(int argc, char** argv){
|
|||||||
while(true){
|
while(true){
|
||||||
vm->_stdout(vm, need_more_lines ? "... " : ">>> ");
|
vm->_stdout(vm, need_more_lines ? "... " : ">>> ");
|
||||||
bool eof = false;
|
bool eof = false;
|
||||||
std::string line = pkpy::getline(&eof);
|
std::string line = pkpy::platform_getline(&eof);
|
||||||
if(eof) break;
|
if(eof) break;
|
||||||
need_more_lines = pkpy_repl_input(repl, line.c_str());
|
need_more_lines = pkpy_repl_input(repl, line.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user