fix: remove irrelevant arguments
This commit is contained in:
parent
aa77c0a651
commit
745367a4ed
1 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ extern "C" obj_res lean_io_prim_handle_get_line(b_obj_arg /* h */, obj_arg /* w
|
|||
}
|
||||
|
||||
/* timeit {α : Type} (msg : @& string) (fn : io α) : io α */
|
||||
extern "C" obj_res lean_io_timeit(obj_arg, b_obj_arg msg, obj_arg fn, obj_arg w) {
|
||||
extern "C" obj_res lean_io_timeit(b_obj_arg msg, obj_arg fn, obj_arg w) {
|
||||
auto start = std::chrono::steady_clock::now();
|
||||
w = apply_1(fn, w);
|
||||
auto end = std::chrono::steady_clock::now();
|
||||
|
|
@ -149,7 +149,7 @@ extern "C" obj_res lean_io_timeit(obj_arg, b_obj_arg msg, obj_arg fn, obj_arg w)
|
|||
}
|
||||
|
||||
/* allocprof {α : Type} (msg : string) (fn : io α) : io α */
|
||||
extern "C" obj_res lean_io_allocprof(obj_arg, b_obj_arg msg, obj_arg fn, obj_arg w) {
|
||||
extern "C" obj_res lean_io_allocprof(b_obj_arg msg, obj_arg fn, obj_arg w) {
|
||||
std::ostream & out = std::cerr; // TODO(Leo): replace?
|
||||
allocprof prof(out, string_cstr(msg));
|
||||
return apply_1(fn, w);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue