We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40dac52 commit 9693073Copy full SHA for 9693073
packages/mcl/src/src/mcl/utils/log.d
@@ -1,5 +1,14 @@
1
module mcl.utils.log;
2
3
+
4
+void errorAndExit(string message) {
5
+ import core.stdc.stdlib: exit;
6
+ import std.stdio : stderr;
7
8
+ stderr.writeln(message);
9
+ exit(1);
10
+}
11
12
T prompt(T)(string message, T[] options = [], string input = "unfilled")
13
{
14
import std.stdio : write, writeln, readln;
0 commit comments