With -vet-style, give suggestion of separating where clauses with a comma rather than '&&'

This improves the error messages
This commit is contained in:
gingerBill
2024-05-09 15:56:00 +01:00
parent b0f0e4d02a
commit f54977336b
3 changed files with 16 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#include "parser_pos.cpp"
gb_internal u64 ast_file_vet_flags(AstFile *f) {
if (f->vet_flags_set) {
if (f != nullptr && f->vet_flags_set) {
return f->vet_flags;
}
return build_context.vet_flags;