diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-26 16:09:22 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-26 16:09:22 +0000 |
| commit | 081a5a52a621f3577255b30a4fa35c9b458d5689 (patch) | |
| tree | 0fe2135d6a46a8a0d0c97134c11f17e3c4b86da2 /src/error.cpp | |
| parent | fb86c23dbd4c6e9dc82fcc72deb1ad59af5e07f0 (diff) | |
Add ODIN_ERROR_POS_STYLE environment variable
Allowing for two different error message styles:
default or odin
path(line:column) message
unix
path:line:column: message
Diffstat (limited to 'src/error.cpp')
| -rw-r--r-- | src/error.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.cpp b/src/error.cpp index b08ff99df..faf4d11fb 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -33,6 +33,10 @@ void init_global_error_collector(void) { } +// temporary +// defined in build_settings.cpp +char *token_pos_to_string(TokenPos const &pos); + bool set_file_path_string(i32 index, String const &path) { bool ok = false; GB_ASSERT(index >= 0); |