mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +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");
|
ctype_preptype(ctr, ct, qual, (info & CTF_UNION) ? "union" : "struct");
|
||||||
return;
|
return;
|
||||||
case CT_ENUM:
|
case CT_ENUM:
|
||||||
|
if (id == CTID_CTYPEID) {
|
||||||
|
ctype_preplit(ctr, "ctype");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ctype_preptype(ctr, ct, qual, "enum");
|
ctype_preptype(ctr, ct, qual, "enum");
|
||||||
return;
|
return;
|
||||||
case CT_ATTRIB:
|
case CT_ATTRIB:
|
||||||
|
Loading…
Reference in New Issue
Block a user