Allow access to raw error messages from outside lj_err.c.
This commit is contained in:
@@ -17,6 +17,9 @@ typedef enum {
|
||||
LJ_ERR__MAX
|
||||
} ErrMsg;
|
||||
|
||||
LJ_DATA const char *lj_err_allmsg;
|
||||
#define err2msg(em) (lj_err_allmsg+(int)(em))
|
||||
|
||||
LJ_FUNC GCstr *lj_err_str(lua_State *L, ErrMsg em);
|
||||
LJ_FUNCA_NORET void LJ_FASTCALL lj_err_throw(lua_State *L, int errcode);
|
||||
LJ_FUNC_NORET void lj_err_mem(lua_State *L);
|
||||
|
||||
Reference in New Issue
Block a user