aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lopcodes.c6
-rw-r--r--ltests.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 3db9db25..823d3485 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.c,v 1.80 2018/03/07 15:55:38 roberto Exp roberto $ 2** $Id: lopcodes.c,v 1.81 2018/04/04 14:23:41 roberto Exp roberto $
3** Opcodes for Lua virtual machine 3** Opcodes for Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -17,6 +17,8 @@
17 17
18/* ORDER OP */ 18/* ORDER OP */
19 19
20#if defined(LUAI_DEFOPNAMES)
21
20LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { 22LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
21 "MOVE", 23 "MOVE",
22 "LOADI", 24 "LOADI",
@@ -98,6 +100,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
98 NULL 100 NULL
99}; 101};
100 102
103#endif
104
101 105
102LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { 106LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
103/* OT IT T A mode opcode */ 107/* 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 @@
1/* 1/*
2** $Id: ltests.h,v 2.56 2018/02/27 18:47:32 roberto Exp roberto $ 2** $Id: ltests.h,v 2.57 2018/04/11 16:49:36 roberto Exp roberto $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -24,6 +24,10 @@
24#define lua_assert(c) assert(c) 24#define lua_assert(c) assert(c)
25 25
26 26
27/* include opcode names */
28#define LUAI_DEFOPNAMES
29
30
27/* compiled with -O0, Lua uses a lot of C stack space... */ 31/* compiled with -O0, Lua uses a lot of C stack space... */
28#undef LUAI_MAXCCALLS 32#undef LUAI_MAXCCALLS
29#define LUAI_MAXCCALLS 200 33#define LUAI_MAXCCALLS 200