aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lopcodes.h b/lopcodes.h
index d15b19e5..8d199ea7 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.119 2005/05/04 20:42:28 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.120 2005/05/20 15:53:42 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*/
@@ -248,7 +248,7 @@ enum OpArgMask {
248 OpArgK /* argument is a constant or register/constant */ 248 OpArgK /* argument is a constant or register/constant */
249}; 249};
250 250
251extern const lu_byte luaP_opmodes[NUM_OPCODES]; 251LUAI_DATA const lu_byte luaP_opmodes[NUM_OPCODES];
252 252
253#define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) 253#define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3))
254#define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) 254#define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3))
@@ -257,7 +257,7 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES];
257#define testTMode(m) (luaP_opmodes[m] & (1 << 7)) 257#define testTMode(m) (luaP_opmodes[m] & (1 << 7))
258 258
259 259
260extern const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ 260LUAI_DATA const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */
261 261
262 262
263/* number of list items to accumulate before a SETLIST instruction */ 263/* number of list items to accumulate before a SETLIST instruction */