summaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 10:53:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 10:53:37 -0300
commit1aa4f69b51a92dc4f5c9d35925b9977d35650679 (patch)
treed63d6534a52452d1c9f4f0c0e6210f4c0435f769 /ldo.c
parent8bb272a3e3d0693a1d587cfa3469153978ae617f (diff)
downloadlua-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 'ldo.c')
-rw-r--r--ldo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index 1a49ceda..a9daeadb 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.124 2014/06/30 19:48:08 roberto Exp roberto $ 2** $Id: ldo.c,v 2.125 2014/07/15 21:26:50 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -593,7 +593,8 @@ LUA_API int lua_isyieldable (lua_State *L) {
593} 593}
594 594
595 595
596LUA_API int lua_yieldk (lua_State *L, int nresults, int ctx, lua_KFunction k) { 596LUA_API int lua_yieldk (lua_State *L, int nresults, lua_Ctx ctx,
597 lua_KFunction k) {
597 CallInfo *ci = L->ci; 598 CallInfo *ci = L->ci;
598 luai_userstateyield(L, nresults); 599 luai_userstateyield(L, nresults);
599 lua_lock(L); 600 lua_lock(L);