commit a53c0817a301913ec8242a2f472fad7968c9ee95
parent cfad556ac17877415110e0ae809af7edc71824bc
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 14 Feb 2021 12:41:11 -0500
typedef: emit some debugging info
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/typedef.c b/src/typedef.c
@@ -342,7 +342,8 @@ emit_decl_type(struct declaration *decl, FILE *out)
char *ident = identifier_unparse(&decl->ident);
fprintf(out, "export type %s = ", ident);
emit_type(decl->_type, out);
- fprintf(out, ";\n");
+ fprintf(out, "; // size: %zd, align: %zd, id: %u\n",
+ decl->_type->size, decl->_type->align, decl->_type->id);
}
void