summaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 95b46692..1fba78f3 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.77 2001/07/03 17:01:34 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.78 2001/07/24 17:19:07 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*/
@@ -213,7 +213,7 @@ enum OpModeMask {
213 OpModeT /* operator is a test */ 213 OpModeT /* operator is a test */
214}; 214};
215 215
216extern const lu_byte luaP_opmodes[]; 216extern const lu_byte luaP_opmodes[NUM_OPCODES];
217 217
218#define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3)) 218#define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3))
219#define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) 219#define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b)))