浏览代码

MAXINDEXRK can be redefined (for debugging, to force most values to
go through registers)

Roberto Ierusalimschy 9 年之前
父节点
当前提交
0d1c6f4188
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lopcodes.h

+ 3 - 1
lopcodes.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lopcodes.h,v 1.147 2014/10/20 18:29:55 roberto Exp roberto $
+** $Id: lopcodes.h,v 1.148 2014/10/25 11:50:46 roberto Exp roberto $
 ** Opcodes for Lua virtual machine
 ** Opcodes for Lua virtual machine
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -139,7 +139,9 @@ enum OpMode {iABC, iABx, iAsBx, iAx};  /* basic instruction format */
 /* gets the index of the constant */
 /* gets the index of the constant */
 #define INDEXK(r)	((int)(r) & ~BITRK)
 #define INDEXK(r)	((int)(r) & ~BITRK)
 
 
+#if !defined(MAXINDEXRK)  /* (for debugging only) */
 #define MAXINDEXRK	(BITRK - 1)
 #define MAXINDEXRK	(BITRK - 1)
+#endif
 
 
 /* code a constant index as a RK value */
 /* code a constant index as a RK value */
 #define RKASK(x)	((x) | BITRK)
 #define RKASK(x)	((x) | BITRK)