aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r--src/lj_errmsg.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h
index 23042720..daf7fb6b 100644
--- a/src/lj_errmsg.h
+++ b/src/lj_errmsg.h
@@ -67,6 +67,7 @@ ERRDEF(PROTMT, "cannot change a protected metatable")
67ERRDEF(UNPACK, "too many results to unpack") 67ERRDEF(UNPACK, "too many results to unpack")
68ERRDEF(RDRSTR, "reader function must return a string") 68ERRDEF(RDRSTR, "reader function must return a string")
69ERRDEF(PRTOSTR, LUA_QL("tostring") " must return a string to " LUA_QL("print")) 69ERRDEF(PRTOSTR, LUA_QL("tostring") " must return a string to " LUA_QL("print"))
70ERRDEF(NUMRNG, "number out of range")
70ERRDEF(IDXRNG, "index out of range") 71ERRDEF(IDXRNG, "index out of range")
71ERRDEF(BASERNG, "base out of range") 72ERRDEF(BASERNG, "base out of range")
72ERRDEF(LVLRNG, "level out of range") 73ERRDEF(LVLRNG, "level out of range")
@@ -78,6 +79,7 @@ ERRDEF(SETFENV, LUA_QL("setfenv") " cannot change environment of given object")
78ERRDEF(CORUN, "cannot resume running coroutine") 79ERRDEF(CORUN, "cannot resume running coroutine")
79ERRDEF(CODEAD, "cannot resume dead coroutine") 80ERRDEF(CODEAD, "cannot resume dead coroutine")
80ERRDEF(COSUSP, "cannot resume non-suspended coroutine") 81ERRDEF(COSUSP, "cannot resume non-suspended coroutine")
82ERRDEF(PRNGSD, "PRNG seeding failed")
81ERRDEF(TABINS, "wrong number of arguments to " LUA_QL("insert")) 83ERRDEF(TABINS, "wrong number of arguments to " LUA_QL("insert"))
82ERRDEF(TABCAT, "invalid value (%s) at index %d in table for " LUA_QL("concat")) 84ERRDEF(TABCAT, "invalid value (%s) at index %d in table for " LUA_QL("concat"))
83ERRDEF(TABSORT, "invalid order function for sorting") 85ERRDEF(TABSORT, "invalid order function for sorting")
@@ -96,18 +98,12 @@ ERRDEF(STRPATX, "pattern too complex")
96ERRDEF(STRCAPI, "invalid capture index") 98ERRDEF(STRCAPI, "invalid capture index")
97ERRDEF(STRCAPN, "too many captures") 99ERRDEF(STRCAPN, "too many captures")
98ERRDEF(STRCAPU, "unfinished capture") 100ERRDEF(STRCAPU, "unfinished capture")
99ERRDEF(STRFMTO, "invalid option " LUA_QL("%%%c") " to " LUA_QL("format")) 101ERRDEF(STRFMT, "invalid option " LUA_QS " to " LUA_QL("format"))
100ERRDEF(STRFMTR, "invalid format (repeated flags)")
101ERRDEF(STRFMTW, "invalid format (width or precision too long)")
102ERRDEF(STRGSRV, "invalid replacement value (a %s)") 102ERRDEF(STRGSRV, "invalid replacement value (a %s)")
103ERRDEF(BADMODN, "name conflict for module " LUA_QS) 103ERRDEF(BADMODN, "name conflict for module " LUA_QS)
104#if LJ_HASJIT 104#if LJ_HASJIT
105ERRDEF(JITPROT, "runtime code generation failed, restricted kernel?") 105ERRDEF(JITPROT, "runtime code generation failed, restricted kernel?")
106#if LJ_TARGET_X86ORX64
107ERRDEF(NOJIT, "JIT compiler disabled, CPU does not support SSE2")
108#else
109ERRDEF(NOJIT, "JIT compiler disabled") 106ERRDEF(NOJIT, "JIT compiler disabled")
110#endif
111#elif defined(LJ_ARCH_NOJIT) 107#elif defined(LJ_ARCH_NOJIT)
112ERRDEF(NOJIT, "no JIT compiler for this architecture (yet)") 108ERRDEF(NOJIT, "no JIT compiler for this architecture (yet)")
113#else 109#else
@@ -118,7 +114,6 @@ ERRDEF(JITOPT, "unknown or malformed optimization flag " LUA_QS)
118/* Lexer/parser errors. */ 114/* Lexer/parser errors. */
119ERRDEF(XMODE, "attempt to load chunk with wrong mode") 115ERRDEF(XMODE, "attempt to load chunk with wrong mode")
120ERRDEF(XNEAR, "%s near " LUA_QS) 116ERRDEF(XNEAR, "%s near " LUA_QS)
121ERRDEF(XELEM, "lexical element too long")
122ERRDEF(XLINES, "chunk has too many lines") 117ERRDEF(XLINES, "chunk has too many lines")
123ERRDEF(XLEVELS, "chunk has too many syntax levels") 118ERRDEF(XLEVELS, "chunk has too many syntax levels")
124ERRDEF(XNUMBER, "malformed number") 119ERRDEF(XNUMBER, "malformed number")
@@ -186,6 +181,19 @@ ERRDEF(FFI_NYIPACKBIT, "NYI: packed bit fields")
186ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)") 181ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)")
187#endif 182#endif
188 183
184#if LJ_HASBUFFER
185/* String buffer errors. */
186ERRDEF(BUFFER_SELF, "cannot put buffer into itself")
187ERRDEF(BUFFER_BADOPT, "bad options table")
188ERRDEF(BUFFER_BADENC, "cannot serialize " LUA_QS)
189ERRDEF(BUFFER_BADDEC, "cannot deserialize tag 0x%02x")
190ERRDEF(BUFFER_BADDICTX, "cannot deserialize dictionary index %d")
191ERRDEF(BUFFER_DEPTH, "too deep to serialize")
192ERRDEF(BUFFER_DUPKEY, "duplicate table key")
193ERRDEF(BUFFER_EOB, "unexpected end of buffer")
194ERRDEF(BUFFER_LEFTOV, "left-over data in buffer")
195#endif
196
189#undef ERRDEF 197#undef ERRDEF
190 198
191/* Detecting unused error messages: 199/* Detecting unused error messages: