summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-04-25 14:09:30 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-04-25 14:09:30 -0400
commit7aa21a12d1b5505ba6258f2a74ce8716e72387c3 (patch)
treeb6067441f028cf42708cc065235920aefa25e980 /types.h
parent342f08a7753495f51eb19dfee6d1b23bbddf344e (diff)
improved #include error handling
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/types.h b/types.h
index d3a4e35..9a19d5b 100644
--- a/types.h
+++ b/types.h
@@ -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 {