aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-04-19 12:42:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-04-19 12:42:41 -0300
commit26eb144541714343f8aeb124150d60cf7d91fac7 (patch)
tree5ad6f2e3b7ff63e1daf52ce4cc95cd220ad0c35f /lopcodes.c
parentf9c3d6fdbea21e83cfc50bcaa617ff59a3d36434 (diff)
downloadlua-26eb144541714343f8aeb124150d60cf7d91fac7.tar.gz
lua-26eb144541714343f8aeb124150d60cf7d91fac7.tar.bz2
lua-26eb144541714343f8aeb124150d60cf7d91fac7.zip
no need to define 'luaP_opnames' in regular builds
Diffstat (limited to 'lopcodes.c')
-rw-r--r--lopcodes.c6
1 files changed, 5 insertions, 1 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 */