mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
FFI: Improve error messages for ctype arguments.
This commit is contained in:
parent
946c7418d5
commit
126f9906fe
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user