aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-12-05 00:18:07 +0100
committerMike Pall <mike>2010-12-05 00:18:07 +0100
commit526e087e63daaaeab517932351c8941f678e071c (patch)
treee7a1460ba4c120b1cc464a3702fb915de9388fe9 /src/lj_errmsg.h
parent05973ee44075698e6c578cfb0fa72cfccdf7b742 (diff)
downloadluajit-526e087e63daaaeab517932351c8941f678e071c.tar.gz
luajit-526e087e63daaaeab517932351c8941f678e071c.tar.bz2
luajit-526e087e63daaaeab517932351c8941f678e071c.zip
FFI: Add C data handling and C type conversions.
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r--src/lj_errmsg.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h
index d9fc615b..1075a9b4 100644
--- a/src/lj_errmsg.h
+++ b/src/lj_errmsg.h
@@ -137,6 +137,23 @@ ERRDEF(XSYNTAX, "syntax error")
137ERRDEF(XBREAK, "no loop to break") 137ERRDEF(XBREAK, "no loop to break")
138ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected") 138ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected")
139 139
140#if LJ_HASFFI
141/* FFI errors. */
142ERRDEF(FFI_INVTYPE, "invalid C type")
143ERRDEF(FFI_INVSIZE, "size of C type is unknown or too large")
144ERRDEF(FFI_BADSCL, "bad storage class")
145ERRDEF(FFI_DECLSPEC, "declaration specifier expected")
146ERRDEF(FFI_BADTAG, "undeclared or implicit tag " LUA_QS)
147ERRDEF(FFI_REDEF, "attempt to redefine " LUA_QS)
148ERRDEF(FFI_INITOV, "too many initializers for " LUA_QS)
149ERRDEF(FFI_BADCONV, "cannot convert " LUA_QS " to " LUA_QS)
150ERRDEF(FFI_BADMEMBER, LUA_QS " has no member named " LUA_QS)
151ERRDEF(FFI_BADIDX, LUA_QS " cannot be indexed")
152ERRDEF(FFI_WRCONST, "attempt to write to constant location")
153ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields")
154ERRDEF(FFI_NYICALL, "NYI: C function calls")
155#endif
156
140#undef ERRDEF 157#undef ERRDEF
141 158
142/* Detecting unused error messages: 159/* Detecting unused error messages: