aboutsummaryrefslogtreecommitdiff
path: root/src/errmsg.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-01 01:06:10 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-01 01:06:10 -0700
commit29f24e3c5066e7cb28876d40a811a4a64f9d4b33 (patch)
tree01d27aa3253da35af6fe8a5d3f69cffab08773bd /src/errmsg.hpp
parent257cf09472ce5f4a51bf39808e119717fa0e4280 (diff)
downloadzig-29f24e3c5066e7cb28876d40a811a4a64f9d4b33.tar.gz
zig-29f24e3c5066e7cb28876d40a811a4a64f9d4b33.zip
add --color cli arg to override tty detection
Diffstat (limited to 'src/errmsg.hpp')
-rw-r--r--src/errmsg.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/errmsg.hpp b/src/errmsg.hpp
index fa851d44bc..1f31020902 100644
--- a/src/errmsg.hpp
+++ b/src/errmsg.hpp
@@ -11,6 +11,12 @@
#include "buffer.hpp"
#include "list.hpp"
+enum ErrColor {
+ ErrColorAuto,
+ ErrColorOff,
+ ErrColorOn,
+};
+
struct ErrorMsg {
int line_start;
int column_start;
@@ -22,6 +28,6 @@ struct ErrorMsg {
ZigList<int> *line_offsets;
};
-void print_err_msg(ErrorMsg *msg);
+void print_err_msg(ErrorMsg *msg, ErrColor color);
#endif