diff options
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.191 2018/04/04 14:23:41 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.192 2018/06/08 19:07:27 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 | */ |
@@ -339,7 +339,7 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */ | |||
339 | ** bit 6: instruction sets 'L->top' for next instruction (when C == 0) | 339 | ** bit 6: instruction sets 'L->top' for next instruction (when C == 0) |
340 | */ | 340 | */ |
341 | 341 | ||
342 | LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; | 342 | LUAI_DDEC(const lu_byte luaP_opmodes[NUM_OPCODES];) |
343 | 343 | ||
344 | #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 7)) | 344 | #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 7)) |
345 | #define testAMode(m) (luaP_opmodes[m] & (1 << 3)) | 345 | #define testAMode(m) (luaP_opmodes[m] & (1 << 3)) |
@@ -358,7 +358,7 @@ LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; | |||
358 | #define opmode(ot,it,t,a,m) (((ot)<<6) | ((it)<<5) | ((t)<<4) | ((a)<<3) | (m)) | 358 | #define opmode(ot,it,t,a,m) (((ot)<<6) | ((it)<<5) | ((t)<<4) | ((a)<<3) | (m)) |
359 | 359 | ||
360 | 360 | ||
361 | LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ | 361 | LUAI_DDEC(const char *const luaP_opnames[NUM_OPCODES+1];) /* opcode names */ |
362 | 362 | ||
363 | 363 | ||
364 | /* number of list items to accumulate before a SETLIST instruction */ | 364 | /* number of list items to accumulate before a SETLIST instruction */ |