diff options
author | Mike Pall <mike> | 2011-11-14 14:15:57 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-11-14 14:18:25 +0100 |
commit | 71d00a56dbab6c29c0346093dbe530d7b7608be4 (patch) | |
tree | 5e28e19b4d2f20168d5ee0e4fe500b1e2b233c1c /src/lj_errmsg.h | |
parent | e9eb4fdb4a08baaa2d9190187a6c38d5b3f8b091 (diff) | |
download | luajit-71d00a56dbab6c29c0346093dbe530d7b7608be4.tar.gz luajit-71d00a56dbab6c29c0346093dbe530d7b7608be4.tar.bz2 luajit-71d00a56dbab6c29c0346093dbe530d7b7608be4.zip |
FFI: Add callback support (for x86/x64).
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r-- | src/lj_errmsg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h index dc015ef2..e9ad0451 100644 --- a/src/lj_errmsg.h +++ b/src/lj_errmsg.h | |||
@@ -160,6 +160,12 @@ ERRDEF(FFI_BADMEMBER, LUA_QS " has no member named " LUA_QS) | |||
160 | ERRDEF(FFI_BADIDX, LUA_QS " cannot be indexed") | 160 | ERRDEF(FFI_BADIDX, LUA_QS " cannot be indexed") |
161 | ERRDEF(FFI_WRCONST, "attempt to write to constant location") | 161 | ERRDEF(FFI_WRCONST, "attempt to write to constant location") |
162 | ERRDEF(FFI_NODECL, "missing declaration for symbol " LUA_QS) | 162 | ERRDEF(FFI_NODECL, "missing declaration for symbol " LUA_QS) |
163 | ERRDEF(FFI_BADCBACK, "bad callback") | ||
164 | #if LJ_TARGET_X86ORX64 | ||
165 | ERRDEF(FFI_CBACKOV, "too many callbacks") | ||
166 | #else | ||
167 | ERRDEF(FFI_CBACKOV, "no support for callbacks (yet)") | ||
168 | #endif | ||
163 | ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields") | 169 | ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields") |
164 | ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)") | 170 | ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)") |
165 | #endif | 171 | #endif |