From 26eb144541714343f8aeb124150d60cf7d91fac7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Apr 2018 12:42:41 -0300 Subject: no need to define 'luaP_opnames' in regular builds --- lopcodes.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lopcodes.c') 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 */ -- cgit v1.2.3-55-g6feb