harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 06b313e7fe7d9d7216ad1c93ca6205a7f658d0b2
parent 86e487cc0d54597488c489fbe718a5de33a58d90
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 23 Feb 2021 13:38:33 -0500

typedefs: emit error types

Diffstat:
Msrc/typedef.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/typedef.c b/src/typedef.c @@ -286,6 +286,10 @@ emit_type(const struct type *type, FILE *out) case STORAGE_ICONST: assert(0); // Invariant } + + if (type->flags & TYPE_ERROR) { + fprintf(out, "!"); + } } static void