diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-18 12:12:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-18 12:12:03 -0200 |
commit | c0edab0f6de39ba5ae2e2f1540fa98f1b507afec (patch) | |
tree | 9401b36cf92a0f37ae6a9cf052c99ff11787246e /lua.h | |
parent | a948054a1951cd526c732d6a0e16d99cae837d49 (diff) | |
download | lua-c0edab0f6de39ba5ae2e2f1540fa98f1b507afec.tar.gz lua-c0edab0f6de39ba5ae2e2f1540fa98f1b507afec.tar.bz2 lua-c0edab0f6de39ba5ae2e2f1540fa98f1b507afec.zip |
first implementation of bitwise operators '&' (band), '|' (bor),
and '~' (bxor)
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.295 2013/12/09 14:21:10 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.296 2013/12/16 19:06:52 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -189,7 +189,10 @@ LUA_API const void *(lua_topointer) (lua_State *L, int idx); | |||
189 | #define LUA_OPPOW 4 | 189 | #define LUA_OPPOW 4 |
190 | #define LUA_OPDIV 5 | 190 | #define LUA_OPDIV 5 |
191 | #define LUA_OPIDIV 6 | 191 | #define LUA_OPIDIV 6 |
192 | #define LUA_OPUNM 7 | 192 | #define LUA_OPBAND 7 |
193 | #define LUA_OPBOR 8 | ||
194 | #define LUA_OPBXOR 9 | ||
195 | #define LUA_OPUNM 10 | ||
193 | 196 | ||
194 | LUA_API void (lua_arith) (lua_State *L, int op); | 197 | LUA_API void (lua_arith) (lua_State *L, int op); |
195 | 198 | ||