diff options
author | Mike Pall <mike> | 2012-06-20 15:06:28 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-06-20 15:06:28 +0200 |
commit | 126f9906febcc90243a34191ab8986b9487cf186 (patch) | |
tree | b134a39078b1c041b75204287cea473767b43ee8 /src/lj_ctype.c | |
parent | 946c7418d59dd201386ee66686075595754cd86d (diff) | |
download | luajit2-126f9906febcc90243a34191ab8986b9487cf186.tar.gz |
FFI: Improve error messages for ctype arguments.
Diffstat (limited to 'src/lj_ctype.c')
-rw-r--r-- | src/lj_ctype.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_ctype.c b/src/lj_ctype.c index 2ea08e25..c9aace16 100644 --- a/src/lj_ctype.c +++ b/src/lj_ctype.c @@ -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: |