aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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: