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 | |
parent | 946c7418d59dd201386ee66686075595754cd86d (diff) | |
download | luajit-126f9906febcc90243a34191ab8986b9487cf186.tar.gz luajit-126f9906febcc90243a34191ab8986b9487cf186.tar.bz2 luajit-126f9906febcc90243a34191ab8986b9487cf186.zip |
FFI: Improve error messages for ctype arguments.
-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) | |||
453 | ctype_preptype(ctr, ct, qual, (info & CTF_UNION) ? "union" : "struct"); | 453 | ctype_preptype(ctr, ct, qual, (info & CTF_UNION) ? "union" : "struct"); |
454 | return; | 454 | return; |
455 | case CT_ENUM: | 455 | case CT_ENUM: |
456 | if (id == CTID_CTYPEID) { | ||
457 | ctype_preplit(ctr, "ctype"); | ||
458 | return; | ||
459 | } | ||
456 | ctype_preptype(ctr, ct, qual, "enum"); | 460 | ctype_preptype(ctr, ct, qual, "enum"); |
457 | return; | 461 | return; |
458 | case CT_ATTRIB: | 462 | case CT_ATTRIB: |