diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-25 14:09:30 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-25 14:09:30 -0400 |
commit | 7aa21a12d1b5505ba6258f2a74ce8716e72387c3 (patch) | |
tree | b6067441f028cf42708cc065235920aefa25e980 /types.h | |
parent | 342f08a7753495f51eb19dfee6d1b23bbddf344e (diff) |
improved #include error handling
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1037,6 +1037,11 @@ typedef struct Typer { Namespace *nms; StrHashTable included_files; /* maps to IncludedFile */ File *file; + /* + have we had an error because we couldn't find a file that was #include'd + (so that we can stop compiling immediately) + */ + bool had_include_err; } Typer; typedef struct CGenerator { |