This commit is contained in:
blueloveTH 2023-07-08 17:37:10 +08:00
parent c1a9d5c77a
commit e3ed334bcb
2 changed files with 2 additions and 2 deletions

BIN
.github/workflows.rar vendored

Binary file not shown.

View File

@ -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());
} }