diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-17 10:53:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-17 10:53:37 -0300 |
commit | 1aa4f69b51a92dc4f5c9d35925b9977d35650679 (patch) | |
tree | d63d6534a52452d1c9f4f0c0e6210f4c0435f769 /lapi.c | |
parent | 8bb272a3e3d0693a1d587cfa3469153978ae617f (diff) | |
download | lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.tar.gz lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.tar.bz2 lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.zip |
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.224 2014/07/15 21:14:49 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.225 2014/07/15 21:26:50 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -859,7 +859,7 @@ LUA_API void lua_setuservalue (lua_State *L, int idx) { | |||
859 | "results from function overflow current stack size") | 859 | "results from function overflow current stack size") |
860 | 860 | ||
861 | 861 | ||
862 | LUA_API void lua_callk (lua_State *L, int nargs, int nresults, int ctx, | 862 | LUA_API void lua_callk (lua_State *L, int nargs, int nresults, lua_Ctx ctx, |
863 | lua_KFunction k) { | 863 | lua_KFunction k) { |
864 | StkId func; | 864 | StkId func; |
865 | lua_lock(L); | 865 | lua_lock(L); |
@@ -899,7 +899,7 @@ static void f_call (lua_State *L, void *ud) { | |||
899 | 899 | ||
900 | 900 | ||
901 | LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, | 901 | LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, |
902 | int ctx, lua_KFunction k) { | 902 | lua_Ctx ctx, lua_KFunction k) { |
903 | struct CallS c; | 903 | struct CallS c; |
904 | int status; | 904 | int status; |
905 | ptrdiff_t func; | 905 | ptrdiff_t func; |