diff options
author | Mike Pall <mike> | 2011-02-19 12:56:12 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-02-19 12:56:12 +0100 |
commit | bd29d16141d07ca4e436fe457fd6cbefd638ad15 (patch) | |
tree | fe4095b299e394d22cfc80e8995ef0d615c2f7f4 /src/lj_cconv.h | |
parent | 3e2a7a2d7fcb763b39df1f17b440b16896bec0e7 (diff) | |
download | luajit-bd29d16141d07ca4e436fe457fd6cbefd638ad15.tar.gz luajit-bd29d16141d07ca4e436fe457fd6cbefd638ad15.tar.bz2 luajit-bd29d16141d07ca4e436fe457fd6cbefd638ad15.zip |
FFI: Improve conversion error messages.
Diffstat (limited to '')
-rw-r--r-- | src/lj_cconv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_cconv.h b/src/lj_cconv.h index 494f9d4e..47c14596 100644 --- a/src/lj_cconv.h +++ b/src/lj_cconv.h | |||
@@ -48,6 +48,9 @@ static LJ_AINLINE uint32_t cconv_idx(CTInfo info) | |||
48 | #define CCF_SAME 0x00000004u | 48 | #define CCF_SAME 0x00000004u |
49 | #define CCF_IGNQUAL 0x00000008u | 49 | #define CCF_IGNQUAL 0x00000008u |
50 | 50 | ||
51 | #define CCF_ARG_SHIFT 8 | ||
52 | #define CCF_ARG(n) ((n) << CCF_ARG_SHIFT) | ||
53 | #define CCF_GETARG(f) ((f) >> CCF_ARG_SHIFT) | ||
51 | 54 | ||
52 | LJ_FUNC int lj_cconv_compatptr(CTState *cts, CType *d, CType *s, CTInfo flags); | 55 | LJ_FUNC int lj_cconv_compatptr(CTState *cts, CType *d, CType *s, CTInfo flags); |
53 | LJ_FUNC void lj_cconv_ct_ct(CTState *cts, CType *d, CType *s, | 56 | LJ_FUNC void lj_cconv_ct_ct(CTState *cts, CType *d, CType *s, |