aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-06-11 13:41:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-06-11 13:41:07 -0300
commit901d76009346d76996679c02deee708bf225e91e (patch)
tree51fb561c607c498e5dd229ab26c439645715c49e /ldo.h
parentc0ed74c1e130aa6d80e5ffc7b6e32b433aca1765 (diff)
downloadlua-901d76009346d76996679c02deee708bf225e91e.tar.gz
lua-901d76009346d76996679c02deee708bf225e91e.tar.bz2
lua-901d76009346d76996679c02deee708bf225e91e.zip
Simpler implementation for tail calls
Tail calls handled by 'luaD_precall', like regular calls, to avoid code duplication.
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.h b/ldo.h
index 6bf0ed86..6edc4450 100644
--- a/ldo.h
+++ b/ldo.h
@@ -58,8 +58,8 @@ LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
58LUAI_FUNC void luaD_hook (lua_State *L, int event, int line, 58LUAI_FUNC void luaD_hook (lua_State *L, int event, int line,
59 int fTransfer, int nTransfer); 59 int fTransfer, int nTransfer);
60LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci); 60LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci);
61LUAI_FUNC void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int n); 61LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nresults,
62LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults); 62 int delta1);
63LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); 63LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
64LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); 64LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);
65LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func); 65LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func);