diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-04-19 12:42:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-04-19 12:42:41 -0300 |
commit | 26eb144541714343f8aeb124150d60cf7d91fac7 (patch) | |
tree | 5ad6f2e3b7ff63e1daf52ce4cc95cd220ad0c35f /lopcodes.c | |
parent | f9c3d6fdbea21e83cfc50bcaa617ff59a3d36434 (diff) | |
download | lua-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 | |||
20 | LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { | 22 | LUAI_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 | ||
102 | LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | 106 | LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { |
103 | /* OT IT T A mode opcode */ | 107 | /* OT IT T A mode opcode */ |