summaryrefslogtreecommitdiff
path: root/src/lj_obj.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-20 20:45:41 +0200
committerMike Pall <mike>2011-06-20 20:45:41 +0200
commit31d566428fe85cdd8c94a01ccab5a2d602286db8 (patch)
treebad0006a61413fb81ddad28f5f65d8c1831f706a /src/lj_obj.h
parent0f55b46b0bb5838f98c0a043c885dd63fab44c5c (diff)
downloadluajit2-31d566428fe85cdd8c94a01ccab5a2d602286db8.tar.gz
From Lua 5.2: __len for tables. Needs -DLUAJIT_ENABLE_LUA52COMPAT.
Diffstat (limited to 'src/lj_obj.h')
-rw-r--r--src/lj_obj.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h
index 7cdc4a1a..afb29d0f 100644
--- a/src/lj_obj.h
+++ b/src/lj_obj.h
@@ -441,9 +441,9 @@ enum {
#endif
#define MMDEF(_) \
- _(index) _(newindex) _(gc) _(mode) _(eq) \
+ _(index) _(newindex) _(gc) _(mode) _(eq) _(len) \
/* Only the above (fast) metamethods are negative cached (max. 8). */ \
- _(len) _(lt) _(le) _(concat) _(call) \
+ _(lt) _(le) _(concat) _(call) \
/* The following must be in ORDER ARITH. */ \
_(add) _(sub) _(mul) _(div) _(mod) _(pow) _(unm) \
/* The following are used in the standard libraries. */ \
@@ -455,7 +455,7 @@ MMDEF(MMENUM)
#undef MMENUM
MM__MAX,
MM____ = MM__MAX,
- MM_FAST = MM_eq
+ MM_FAST = MM_len
} MMS;
/* GC root IDs. */