From 1aa4f69b51a92dc4f5c9d35925b9977d35650679 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Jul 2014 10:53:37 -0300 Subject: new type 'lua_Ctx' for continuation-function contexts (to allow type to be configurable) --- lapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index eeba6867..be6955a1 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.224 2014/07/15 21:14:49 roberto Exp roberto $ +** $Id: lapi.c,v 2.225 2014/07/15 21:26:50 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -859,7 +859,7 @@ LUA_API void lua_setuservalue (lua_State *L, int idx) { "results from function overflow current stack size") -LUA_API void lua_callk (lua_State *L, int nargs, int nresults, int ctx, +LUA_API void lua_callk (lua_State *L, int nargs, int nresults, lua_Ctx ctx, lua_KFunction k) { StkId func; lua_lock(L); @@ -899,7 +899,7 @@ static void f_call (lua_State *L, void *ud) { LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, - int ctx, lua_KFunction k) { + lua_Ctx ctx, lua_KFunction k) { struct CallS c; int status; ptrdiff_t func; -- cgit v1.2.3-55-g6feb