From 85b9ec82247f6e06b802188af35d09d3159625df Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 11 Sep 2020 15:31:51 +0800 Subject: update Lua. --- src/lua/ltm.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lua/ltm.h') diff --git a/src/lua/ltm.h b/src/lua/ltm.h index 99b545e..73b833c 100644 --- a/src/lua/ltm.h +++ b/src/lua/ltm.h @@ -45,6 +45,15 @@ typedef enum { } TMS; +/* +** Mask with 1 in all fast-access methods. A 1 in any of these bits +** in the flag of a (meta)table means the metatable does not have the +** corresponding metamethod field. (Bit 7 of the flag is used for +** 'isrealasize'.) +*/ +#define maskflags (~(~0u << (TM_EQ + 1))) + + /* ** Test whether there is no tagmethod. ** (Because tagmethods use raw accesses, the result may be an "empty" nil.) -- cgit v1.2.3-55-g6feb