summaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-08 17:10:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-08 17:10:05 -0300
commitf8df21bd2071c4e3729d37d1552f54ca2742551a (patch)
tree6d85e7fd9f86bfb6879c0edd60780b1f40325027 /lopcodes.h
parentd3902cfa81021bca0a8c30b3ad79a1e2367f6621 (diff)
downloadlua-f8df21bd2071c4e3729d37d1552f54ca2742551a.tar.gz
lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.tar.bz2
lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.zip
`luaconf.h´ exports all its definitions always (so all of them
must have a lua/LUA prefix).
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 c8bd6673..0754c1bc 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.114 2004/12/02 12:59:10 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.115 2005/03/08 18:00:16 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*/
@@ -51,9 +51,9 @@ enum OpMode {iABC, iABx, iAsBx}; /* basic instruction format */
51/* 51/*
52** limits for opcode arguments. 52** limits for opcode arguments.
53** we use (signed) int to manipulate most arguments, 53** we use (signed) int to manipulate most arguments,
54** so they must fit in LUA_BITSINT-1 bits (-1 for sign) 54** so they must fit in LUAC_BITSINT-1 bits (-1 for sign)
55*/ 55*/
56#if SIZE_Bx < LUA_BITSINT-1 56#if SIZE_Bx < LUAC_BITSINT-1
57#define MAXARG_Bx ((1<<SIZE_Bx)-1) 57#define MAXARG_Bx ((1<<SIZE_Bx)-1)
58#define MAXARG_sBx (MAXARG_Bx>>1) /* `sBx' is signed */ 58#define MAXARG_sBx (MAXARG_Bx>>1) /* `sBx' is signed */
59#else 59#else