chore: add std::cout.flush

cc @kha
This commit is contained in:
Leonardo de Moura 2019-10-29 11:07:22 -07:00
parent 6a34b20540
commit a43a225013

View file

@ -94,6 +94,7 @@ extern "C" obj_res lean_io_initializing(obj_arg) {
extern "C" obj_res lean_io_prim_put_str(b_obj_arg s, obj_arg) {
std::cout << string_to_std(s); // TODO(Leo): use out handle
std::cout.flush(); // TODO(Leo): remove following line. Added for chasing bug
return set_io_result(box(0));
}