new type 'lua_Ctx' for continuation-function contexts (to allow type

to be configurable)
This commit is contained in:
Roberto Ierusalimschy
2014-07-17 10:53:37 -03:00
parent 8bb272a3e3
commit 1aa4f69b51
7 changed files with 63 additions and 42 deletions

5
ldo.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.c,v 2.124 2014/06/30 19:48:08 roberto Exp roberto $
** $Id: ldo.c,v 2.125 2014/07/15 21:26:50 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -593,7 +593,8 @@ LUA_API int lua_isyieldable (lua_State *L) {
}
LUA_API int lua_yieldk (lua_State *L, int nresults, int ctx, lua_KFunction k) {
LUA_API int lua_yieldk (lua_State *L, int nresults, lua_Ctx ctx,
lua_KFunction k) {
CallInfo *ci = L->ci;
luai_userstateyield(L, nresults);
lua_lock(L);