mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Exit program if there were syntax errors
This commit is contained in:
@@ -714,6 +714,10 @@ void destroy_checker_info(CheckerInfo *i) {
|
||||
|
||||
|
||||
void init_checker(Checker *c, Parser *parser, BuildContext *bc) {
|
||||
if (global_error_collector.count > 0) {
|
||||
gb_exit(1);
|
||||
}
|
||||
|
||||
gbAllocator a = heap_allocator();
|
||||
|
||||
c->parser = parser;
|
||||
|
||||
Reference in New Issue
Block a user