Merge pull request #3363 from rtfeldman/benchmark-prompt

Make the benchmark host prompt the user for input
This commit is contained in:
Folkert de Vries 2022-07-02 00:54:28 +02:00 committed by GitHub
commit 4fb272f6a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,6 +205,9 @@ fn roc_fx_getInt_32bit(output: *GetInt) callconv(.C) void {
}
fn roc_fx_getInt_help() !i64 {
const stdout = std.io.getStdOut().writer();
stdout.print("Please enter an integer\n", .{}) catch unreachable;
const stdin = std.io.getStdIn().reader();
var buf: [40]u8 = undefined;