diff options
author | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
commit | 6523585c66c04cea54df50013df8886b589847d8 (patch) | |
tree | 0b22aee7064166d88595eda260ca2d17c0773da5 /libraries/luajit-2.0/src/lj_err.h | |
parent | Update the EFL to what I'm actually using, coz I'm using some stuff not yet r... (diff) | |
download | SledjHamr-6523585c66c04cea54df50013df8886b589847d8.zip SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.gz SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.bz2 SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.xz |
Add luaproc and LuaJIT libraries.
Two versions of LuaJIT, the stable release, and the dev version. Try the dev version first, until ih fails badly.
Diffstat (limited to 'libraries/luajit-2.0/src/lj_err.h')
-rw-r--r-- | libraries/luajit-2.0/src/lj_err.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libraries/luajit-2.0/src/lj_err.h b/libraries/luajit-2.0/src/lj_err.h new file mode 100644 index 0000000..c65f484 --- /dev/null +++ b/libraries/luajit-2.0/src/lj_err.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | ** Error handling. | ||
3 | ** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #ifndef _LJ_ERR_H | ||
7 | #define _LJ_ERR_H | ||
8 | |||
9 | #include <stdarg.h> | ||
10 | |||
11 | #include "lj_obj.h" | ||
12 | |||
13 | typedef enum { | ||
14 | #define ERRDEF(name, msg) \ | ||
15 | LJ_ERR_##name, LJ_ERR_##name##_ = LJ_ERR_##name + sizeof(msg)-1, | ||
16 | #include "lj_errmsg.h" | ||
17 | LJ_ERR__MAX | ||
18 | } ErrMsg; | ||
19 | |||
20 | LJ_DATA const char *lj_err_allmsg; | ||
21 | #define err2msg(em) (lj_err_allmsg+(int)(em)) | ||
22 | |||
23 | LJ_FUNC GCstr *lj_err_str(lua_State *L, ErrMsg em); | ||
24 | LJ_FUNCA_NORET void LJ_FASTCALL lj_err_throw(lua_State *L, int errcode); | ||
25 | LJ_FUNC_NORET void lj_err_mem(lua_State *L); | ||
26 | LJ_FUNC_NORET void lj_err_run(lua_State *L); | ||
27 | LJ_FUNC_NORET void lj_err_msg(lua_State *L, ErrMsg em); | ||
28 | LJ_FUNC_NORET void lj_err_lex(lua_State *L, GCstr *src, const char *tok, | ||
29 | BCLine line, ErrMsg em, va_list argp); | ||
30 | LJ_FUNC_NORET void lj_err_optype(lua_State *L, cTValue *o, ErrMsg opm); | ||
31 | LJ_FUNC_NORET void lj_err_comp(lua_State *L, cTValue *o1, cTValue *o2); | ||
32 | LJ_FUNC_NORET void lj_err_optype_call(lua_State *L, TValue *o); | ||
33 | LJ_FUNC_NORET void lj_err_callermsg(lua_State *L, const char *msg); | ||
34 | LJ_FUNC_NORET void lj_err_callerv(lua_State *L, ErrMsg em, ...); | ||
35 | LJ_FUNC_NORET void lj_err_caller(lua_State *L, ErrMsg em); | ||
36 | LJ_FUNC_NORET void lj_err_arg(lua_State *L, int narg, ErrMsg em); | ||
37 | LJ_FUNC_NORET void lj_err_argv(lua_State *L, int narg, ErrMsg em, ...); | ||
38 | LJ_FUNC_NORET void lj_err_argtype(lua_State *L, int narg, const char *xname); | ||
39 | LJ_FUNC_NORET void lj_err_argt(lua_State *L, int narg, int tt); | ||
40 | |||
41 | #endif | ||