FFI: Improve error messages for ctype arguments.

master
Mike Pall 2012-06-20 15:06:28 +02:00
parent 946c7418d5
commit 126f9906fe
1 changed files with 4 additions and 0 deletions

View File

@ -453,6 +453,10 @@ static void ctype_repr(CTRepr *ctr, CTypeID id)
ctype_preptype(ctr, ct, qual, (info & CTF_UNION) ? "union" : "struct");
return;
case CT_ENUM:
if (id == CTID_CTYPEID) {
ctype_preplit(ctr, "ctype");
return;
}
ctype_preptype(ctr, ct, qual, "enum");
return;
case CT_ATTRIB: