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 | luajit2-bd29d16141d07ca4e436fe457fd6cbefd638ad15.tar.gz |
FFI: Improve conversion error messages.
Diffstat (limited to 'src/lj_cconv.h')
-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) #define CCF_SAME 0x00000004u #define CCF_IGNQUAL 0x00000008u +#define CCF_ARG_SHIFT 8 +#define CCF_ARG(n) ((n) << CCF_ARG_SHIFT) +#define CCF_GETARG(f) ((f) >> CCF_ARG_SHIFT) LJ_FUNC int lj_cconv_compatptr(CTState *cts, CType *d, CType *s, CTInfo flags); LJ_FUNC void lj_cconv_ct_ct(CTState *cts, CType *d, CType *s, |