aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-01-06 23:30:04 +0100
committerMike Pall <mike>2011-01-06 23:30:04 +0100
commitfb0a18ca0bbc96aac105d903e1db92d31f1d4d3c (patch)
tree019c7f7f80e2b078ce24db5cae8db0b461ad7810 /src/lj_errmsg.h
parent97875c4fa98dcdd0447ae0d4b73b591bfcec6f12 (diff)
downloadluajit-fb0a18ca0bbc96aac105d903e1db92d31f1d4d3c.tar.gz
luajit-fb0a18ca0bbc96aac105d903e1db92d31f1d4d3c.tar.bz2
luajit-fb0a18ca0bbc96aac105d903e1db92d31f1d4d3c.zip
FFI: Add support for calling C functions.
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r--src/lj_errmsg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h
index 66062747..ae784bc9 100644
--- a/src/lj_errmsg.h
+++ b/src/lj_errmsg.h
@@ -148,11 +148,13 @@ ERRDEF(FFI_REDEF, "attempt to redefine " LUA_QS)
148ERRDEF(FFI_INITOV, "too many initializers for " LUA_QS) 148ERRDEF(FFI_INITOV, "too many initializers for " LUA_QS)
149ERRDEF(FFI_BADCONV, "cannot convert " LUA_QS " to " LUA_QS) 149ERRDEF(FFI_BADCONV, "cannot convert " LUA_QS " to " LUA_QS)
150ERRDEF(FFI_BADARITH, "attempt to perform arithmetic on " LUA_QS " and " LUA_QS) 150ERRDEF(FFI_BADARITH, "attempt to perform arithmetic on " LUA_QS " and " LUA_QS)
151ERRDEF(FFI_BADCALL, LUA_QS " is not callable")
152ERRDEF(FFI_NUMARG, "wrong number of arguments for function call")
151ERRDEF(FFI_BADMEMBER, LUA_QS " has no member named " LUA_QS) 153ERRDEF(FFI_BADMEMBER, LUA_QS " has no member named " LUA_QS)
152ERRDEF(FFI_BADIDX, LUA_QS " cannot be indexed") 154ERRDEF(FFI_BADIDX, LUA_QS " cannot be indexed")
153ERRDEF(FFI_WRCONST, "attempt to write to constant location") 155ERRDEF(FFI_WRCONST, "attempt to write to constant location")
154ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields") 156ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields")
155ERRDEF(FFI_NYICALL, "NYI: C function calls") 157ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)")
156#endif 158#endif
157 159
158#undef ERRDEF 160#undef ERRDEF