diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
commit | a948054a1951cd526c732d6a0e16d99cae837d49 (patch) | |
tree | d13984803c85e83eda285a285bd3de2e05a603af /lua.h | |
parent | a8f8c7fd80a5c7e630fd4bf7f858d05024f6b434 (diff) | |
download | lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.gz lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.bz2 lua-a948054a1951cd526c732d6a0e16d99cae837d49.zip |
new order for binary operations (grouping them by type of result)
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.294 2013/09/13 16:21:52 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.295 2013/12/09 14:21:10 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 |
@@ -182,13 +182,13 @@ LUA_API const void *(lua_topointer) (lua_State *L, int idx); | |||
182 | ** Comparison and arithmetic functions | 182 | ** Comparison and arithmetic functions |
183 | */ | 183 | */ |
184 | 184 | ||
185 | #define LUA_OPADD 0 /* ORDER TM */ | 185 | #define LUA_OPADD 0 /* ORDER TM, ORDER OP */ |
186 | #define LUA_OPSUB 1 | 186 | #define LUA_OPSUB 1 |
187 | #define LUA_OPMUL 2 | 187 | #define LUA_OPMUL 2 |
188 | #define LUA_OPDIV 3 | 188 | #define LUA_OPMOD 3 |
189 | #define LUA_OPIDIV 4 | 189 | #define LUA_OPPOW 4 |
190 | #define LUA_OPMOD 5 | 190 | #define LUA_OPDIV 5 |
191 | #define LUA_OPPOW 6 | 191 | #define LUA_OPIDIV 6 |
192 | #define LUA_OPUNM 7 | 192 | #define LUA_OPUNM 7 |
193 | 193 | ||
194 | LUA_API void (lua_arith) (lua_State *L, int op); | 194 | LUA_API void (lua_arith) (lua_State *L, int op); |