aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-12 13:35:14 +0100
committergingerBill <bill@gingerbill.org>2024-04-12 13:35:14 +0100
commit46b9bd8c0e3987080f94ae42921b513a79708ef9 (patch)
tree79080c21e3161a00bb972d80187f6b395e39c039 /src/tokenizer.cpp
parent3426af2d6cb5944d373470d10ca91f827a8f39ca (diff)
Improve error messages for `switch` and `for` r-values with a suggestion
Diffstat (limited to 'src/tokenizer.cpp')
-rw-r--r--src/tokenizer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index 3d5348074..fdff9224a 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -193,6 +193,7 @@ gb_internal void init_keyword_hash_table(void) {
gb_global Array<String> global_file_path_strings; // index is file id
gb_global Array<struct AstFile *> global_files; // index is file id
+gb_global BlockingMutex global_files_mutex;
gb_internal String get_file_path_string(i32 index);
gb_internal struct AstFile *thread_safe_get_ast_file_from_id(i32 index);