diff options
author | Mike Pall <mike> | 2010-12-05 00:18:07 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-05 00:18:07 +0100 |
commit | 526e087e63daaaeab517932351c8941f678e071c (patch) | |
tree | e7a1460ba4c120b1cc464a3702fb915de9388fe9 /src/lj_errmsg.h | |
parent | 05973ee44075698e6c578cfb0fa72cfccdf7b742 (diff) | |
download | luajit-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.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: |