diff --git a/lopcodes.c b/lopcodes.c index 3db9db25..823d3485 100644 --- a/lopcodes.c +++ b/lopcodes.c @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.c,v 1.80 2018/03/07 15:55:38 roberto Exp roberto $ +** $Id: lopcodes.c,v 1.81 2018/04/04 14:23:41 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -17,6 +17,8 @@ /* ORDER OP */ +#if defined(LUAI_DEFOPNAMES) + LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { "MOVE", "LOADI", @@ -98,6 +100,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { NULL }; +#endif + LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { /* OT IT T A mode opcode */ diff --git a/ltests.h b/ltests.h index e718e764..a6cee3c7 100644 --- a/ltests.h +++ b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 2.56 2018/02/27 18:47:32 roberto Exp roberto $ +** $Id: ltests.h,v 2.57 2018/04/11 16:49:36 roberto Exp roberto $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -24,6 +24,10 @@ #define lua_assert(c) assert(c) +/* include opcode names */ +#define LUAI_DEFOPNAMES + + /* compiled with -O0, Lua uses a lot of C stack space... */ #undef LUAI_MAXCCALLS #define LUAI_MAXCCALLS 200