diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_errmsg.h | 17 |
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") | |||
137 | ERRDEF(XBREAK, "no loop to break") | 137 | ERRDEF(XBREAK, "no loop to break") |
138 | ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected") | 138 | ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected") |
139 | 139 | ||
140 | #if LJ_HASFFI | ||
141 | /* FFI errors. */ | ||
142 | ERRDEF(FFI_INVTYPE, "invalid C type") | ||
143 | ERRDEF(FFI_INVSIZE, "size of C type is unknown or too large") | ||
144 | ERRDEF(FFI_BADSCL, "bad storage class") | ||
145 | ERRDEF(FFI_DECLSPEC, "declaration specifier expected") | ||
146 | ERRDEF(FFI_BADTAG, "undeclared or implicit tag " LUA_QS) | ||
147 | ERRDEF(FFI_REDEF, "attempt to redefine " LUA_QS) | ||
148 | ERRDEF(FFI_INITOV, "too many initializers for " LUA_QS) | ||
149 | ERRDEF(FFI_BADCONV, "cannot convert " LUA_QS " to " LUA_QS) | ||
150 | ERRDEF(FFI_BADMEMBER, LUA_QS " has no member named " LUA_QS) | ||
151 | ERRDEF(FFI_BADIDX, LUA_QS " cannot be indexed") | ||
152 | ERRDEF(FFI_WRCONST, "attempt to write to constant location") | ||
153 | ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields") | ||
154 | ERRDEF(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: |