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 /ltm.c | |
| 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 'ltm.c')
| -rw-r--r-- | ltm.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.c,v 2.22 2013/08/27 18:53:35 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.23 2013/12/16 19:06:52 roberto Exp roberto $ |
| 3 | ** Tag methods | 3 | ** Tag methods |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -38,6 +38,7 @@ void luaT_init (lua_State *L) { | |||
| 38 | "__gc", "__mode", "__len", "__eq", | 38 | "__gc", "__mode", "__len", "__eq", |
| 39 | "__add", "__sub", "__mul", "__mod", "__pow", | 39 | "__add", "__sub", "__mul", "__mod", "__pow", |
| 40 | "__div", "__idiv", | 40 | "__div", "__idiv", |
| 41 | "__band", "__bor", "__bxor", | ||
| 41 | "__unm", "__lt", "__le", | 42 | "__unm", "__lt", "__le", |
| 42 | "__concat", "__call" | 43 | "__concat", "__call" |
| 43 | }; | 44 | }; |
