summaryrefslogtreecommitdiff
path: root/src/lj_meta.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-04-12 19:12:29 +0200
committerMike Pall <mike>2011-04-12 19:13:11 +0200
commitfa5cd010e8e28c7fe2338d0fdd538e95ddd88bcc (patch)
tree72aadf3527f4a65bde320f8f7b979b33b559b713 /src/lj_meta.h
parent23f847f4ed0464adf62d63eafa5c759c03793f83 (diff)
downloadluajit-fa5cd010e8e28c7fe2338d0fdd538e95ddd88bcc.tar.gz
luajit-fa5cd010e8e28c7fe2338d0fdd538e95ddd88bcc.tar.bz2
luajit-fa5cd010e8e28c7fe2338d0fdd538e95ddd88bcc.zip
Add support for tailcalls from internal C functions.
PPC: Fix __call metamethod for tailcalls.
Diffstat (limited to 'src/lj_meta.h')
-rw-r--r--src/lj_meta.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_meta.h b/src/lj_meta.h
index 32b3dec3..c16c0da3 100644
--- a/src/lj_meta.h
+++ b/src/lj_meta.h
@@ -12,6 +12,7 @@
12LJ_FUNC void lj_meta_init(lua_State *L); 12LJ_FUNC void lj_meta_init(lua_State *L);
13LJ_FUNC cTValue *lj_meta_cache(GCtab *mt, MMS mm, GCstr *name); 13LJ_FUNC cTValue *lj_meta_cache(GCtab *mt, MMS mm, GCstr *name);
14LJ_FUNC cTValue *lj_meta_lookup(lua_State *L, cTValue *o, MMS mm); 14LJ_FUNC cTValue *lj_meta_lookup(lua_State *L, cTValue *o, MMS mm);
15LJ_FUNC int lj_meta_tailcall(lua_State *L, cTValue *tv);
15 16
16#define lj_meta_fastg(g, mt, mm) \ 17#define lj_meta_fastg(g, mt, mm) \
17 ((mt) == NULL ? NULL : ((mt)->nomm & (1u<<(mm))) ? NULL : \ 18 ((mt) == NULL ? NULL : ((mt)->nomm & (1u<<(mm))) ? NULL : \