diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-09-11 15:31:51 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-09-11 15:31:51 +0800 |
| commit | 85b9ec82247f6e06b802188af35d09d3159625df (patch) | |
| tree | 487152fb9639a74e323f7db962f558ba0514322d /src/lua/ltable.h | |
| parent | dfd4e3b2b2abc0137d26ed3df303a398741bb6a0 (diff) | |
| download | yuescript-85b9ec82247f6e06b802188af35d09d3159625df.tar.gz yuescript-85b9ec82247f6e06b802188af35d09d3159625df.tar.bz2 yuescript-85b9ec82247f6e06b802188af35d09d3159625df.zip | |
update Lua.
Diffstat (limited to 'src/lua/ltable.h')
| -rw-r--r-- | src/lua/ltable.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lua/ltable.h b/src/lua/ltable.h index ebd7f8e..c0060f4 100644 --- a/src/lua/ltable.h +++ b/src/lua/ltable.h | |||
| @@ -15,7 +15,12 @@ | |||
| 15 | #define gnext(n) ((n)->u.next) | 15 | #define gnext(n) ((n)->u.next) |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #define invalidateTMcache(t) ((t)->flags = 0) | 18 | /* |
| 19 | ** Clear all bits of fast-access metamethods, which means that the table | ||
| 20 | ** may have any of these metamethods. (First access that fails after the | ||
| 21 | ** clearing will set the bit again.) | ||
| 22 | */ | ||
| 23 | #define invalidateTMcache(t) ((t)->flags &= ~maskflags) | ||
| 19 | 24 | ||
| 20 | 25 | ||
| 21 | /* true when 't' is using 'dummynode' as its hash part */ | 26 | /* true when 't' is using 'dummynode' as its hash part */ |
