Update pocketpy.h

This commit is contained in:
blueloveTH 2022-11-13 20:26:25 +08:00
parent fc6f61ad3d
commit ee1f8091c7

View File

@ -41,10 +41,8 @@ void __initializeBuiltinFunctions(VM* _vm) {
_vm->bindBuiltinFunc("print", [](VM* vm, PyVarList args) { _vm->bindBuiltinFunc("print", [](VM* vm, PyVarList args) {
_StrStream ss; _StrStream ss;
for (auto& arg : args){ for (auto& arg : args) ss << vm->PyStr_AS_C(vm->asStr(arg)) << " ";
ss << vm->PyStr_AS_C(vm->asStr(arg)) << " "; vm->_stdout(vm, ss.str().c_str());
}
vm->_stdout(ss.str());
vm->_stdout(vm, "\n"); vm->_stdout(vm, "\n");
return vm->None; return vm->None;
}); });