Allow access to raw error messages from outside lj_err.c.
This commit is contained in:
@@ -72,13 +72,11 @@
|
||||
/* -- Error messages ------------------------------------------------------ */
|
||||
|
||||
/* Error message strings. */
|
||||
static const char *lj_err_allmsg =
|
||||
LJ_DATADEF const char *lj_err_allmsg =
|
||||
#define ERRDEF(name, msg) msg "\0"
|
||||
#include "lj_errmsg.h"
|
||||
;
|
||||
|
||||
#define err2msg(em) (lj_err_allmsg+(int)(em))
|
||||
|
||||
/* -- Frame and function introspection ------------------------------------ */
|
||||
|
||||
static BCPos currentpc(lua_State *L, GCfunc *fn, cTValue *nextframe)
|
||||
|
||||
Reference in New Issue
Block a user